2021-04-02
閱讀量:
482
在mysql中可以這樣寫嗎:select name from person_birthday where name=null
問:
在mysql中可以這樣寫嗎:select name from person_birthday where name=null;
答:
不可以,比較運(yùn)算符是無法對null 來使用的,用”<>”也無法查詢出你想要的結(jié)果。
上面“name=null”應(yīng)該換成“name is null”。
如果是“name<>null”,則換成“name is not null”。






評論(0)


暫無數(shù)據(jù)
推薦帖子
0條評論
0條評論
0條評論