Dragon
主机之家测评主机之家测评  2019-08-22 14:34 主机之家测评 隐藏边栏 |   抢沙发  5 
文章评分 0 次,平均分 0.0

查询 mysql 数据库表中字段为 null 的记录:

  select * from 表名 where 字段名 is null

示例:

  select * from student where address is null

查询 mysql 数据库表中字段不为 null 的记录:

  select * from 表名 where 字段名 is not null

示例:

  select * from student where address is not null

本文为原创文章,版权归所有,欢迎分享本文,转载请保留出处!

发表评论

扫一扫二维码分享