SQL语句查询是否为空 =null及null

如题所述

980514 全欣木业有限公司 NULL 123980514 迅亿科技股份有限公司 简逢浚 NULL980515 圣越国际企业有限公司 NULL 111表结构如上所示,要查询C列为空的记录的SQL语句不是select * from table where c=null; 或者 select * from table where c=''; 而应当是 select * from table where c is null; 相反地要查询不为空的则应当是 select * from talbe where c<''; 或者 select * from table where c is not null; 注意:不是not is null哦。
温馨提示:答案为网友推荐,仅供参考
相似回答