热线电话:13121318867

登录
2020-02-21 阅读量: 469
mysql中null的特殊性

问:

在mysql中可以这样写吗:select name from person_birthday where name=null;

答:

不可以,比较运算符是无法对null 来使用的,用”<>”也无法查询出你想要的结果。

上面“name=null”应该换成“name is null”。

如果是“name<>null”,则换成“name is not null”。

0.0000
1
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子