mysql 查询值为null的数据: is null 的使用

mysql在开发过程中遇到的问题整理:

查询id字段为空的数据:

select * from temp where id  is null;

查询id字段不为空的数据:

select * from temp where id  is  not  null;
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章