文章詳情頁(yè)
MySQL中更新數(shù)據(jù)[update]無(wú)法成功的疑問
瀏覽:203日期:2022-06-10 18:53:11
問題描述
![MySQL中更新數(shù)據(jù)[update]無(wú)法成功的疑問](http://www.b3g6.com/attached/image/news/202206/09495569ae.png)
問題解答
回答1:改為 where id IS NULL 即可MySQL里面不能用等號(hào)判斷NULL。
詳見:https://dev.mysql.com/doc/ref...
回答2:where id is null
回答3:一般更新語(yǔ)句,保險(xiǎn)起見,先驗(yàn)證下數(shù)據(jù)量及確認(rèn)下更新內(nèi)容
#update defaultdemo#set id = 19select id from defaultdemowhere id is null;
相關(guān)文章:
1. nignx - docker內(nèi)nginx 80端口被占用2. docker容器呢SSH為什么連不通呢?3. javascript - 連續(xù)點(diǎn)擊觸發(fā)mouseleave事件4. docker - 各位電腦上有多少個(gè)容器啊?容器一多,自己都搞混了,咋辦呢?5. 關(guān)于docker下的nginx壓力測(cè)試6. 關(guān)docker hub上有些鏡像的tag被標(biāo)記““This image has vulnerabilities””7. mac里的docker如何命令行開啟呢?8. docker gitlab 如何git clone?9. dockerfile - 我用docker build的時(shí)候出現(xiàn)下邊問題 麻煩幫我看一下10. angular.js使用$resource服務(wù)把數(shù)據(jù)存入mongodb的問題。
排行榜

熱門標(biāo)簽
網(wǎng)公網(wǎng)安備