郑安琦,太上唤魔录,非凡网
a b c d
980515 精頂企業有限公司 簡家豪 null
980514 全欣木業有限公司 null 123
980514 迅億科技股份有限公司 簡逢浚 null
980515 聖越國際企業有限公司 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哦。
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
数据库SQL---数据库、基本表、视图、索引的定义、修改、删除
在 Azure CentOS VM 中配置 SQL Server 2019 AG - (上)
在 Azure CentOS VM 中配置 SQL Server 2019 AG - (下)
网友评论