MySQL中查询字段为null或不为null

正确写法:

select * from table where column is null;
select * from table where column is not null;

切记不能使用select * from table where column = null;

猜你喜欢

转载自blog.csdn.net/qq_36691683/article/details/88362524