欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

SQL語句查詢是否為空 =null及null

 更新時(shí)間:2009年06月05日 23:48:10   作者:  
SQL語句查詢是否為空 =null及null實(shí)現(xiàn)代碼。

a                  b                             c             d

980515      精頂企業(yè)有限公司         簡家豪      NULL

980514      全欣木業(yè)有限公司         NULL       123

980514      迅億科技股份有限公司   簡逢浚      NULL

980515      聖越國際企業(yè)有限公司   NULL       111 

表結(jié)構(gòu)如上所示,要查詢C列為空的記錄的SQL語句不是select * from table where c=null; 或者 select * from table where c=''; 而應(yīng)當(dāng)是 select * from table where c is null; 相反地要查詢不為空的則應(yīng)當(dāng)是 select * from talbe where c<>''; 或者 select * from table where c is not null; 注意:不是not is null哦。

相關(guān)文章

最新評論