正确写法:
select * from table where column is null;
select * from table where column is not null;
切记不能使用select * from table where column = null;
本文纠正了SQL中查询NULL值的常见错误,详细解释了为何不能使用'column=null'进行查询,并提供了正确的查询NULL及非NULL值的方法。
正确写法:
select * from table where column is null;
select * from table where column is not null;
切记不能使用select * from table where column = null;
1979

被折叠的 条评论
为什么被折叠?