sql查詢null的3種方式的區(qū)別是xx字段所存值和判斷語法不同:
where XX =‘NULL’ ,XX字段存的值就是NULL這四個(gè)字符;
where XX is null ,XX字段什么也沒存卫病,這是數(shù)據(jù)庫的判斷語法;
where isnull(XX)典徘,XX字段什么也沒存蟀苛,這是界面開發(fā)語言的判斷語法。
————————————————
是null還是 " "按濉帜平?
空
如果是null 就是select name,age,成績 from AA where 成績 is null
如果是 " " 就是select name,age,成績 from AA where 成績= " "
不空
如果是null 就是select name,age,成績 from AA where 成績 is not null
如果是 " " 就是select name,age,成績 from AA where 成績 <> " "
關(guān)于sql語句的問題,批量修改字段的值幽告,就是在字段舊值的基礎(chǔ)上再加上一些新值,比如是abc罕模,
例子如下:update tablea set a=a+'abc'