热线电话:13121318867

登录
2021-04-02 阅读量: 475
在mysql中可以这样写吗:select name from person_birthday where name=null

问:

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



答:

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

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

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


133.3333
0
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子