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”。






评论(0)


暂无数据
推荐帖子
0条评论
0条评论
0条评论