MSSQL查询语句条件是否为NULL

要查询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哦。

猜你喜欢

转载自blog.csdn.net/gdali/article/details/78197293