查询一张用户信息表(userInfo),查询手机号(phone)为空的记录,sql语句如下:
select * from userInfo where phone is null;
这样在sql server里查询是可以的。
我之前是这样写的:where phone=' ' 这样写在sql server里是查不到的,有大神可以告诉我为什么吗。
查询一张用户信息表(userInfo),查询手机号(phone)为空的记录,sql语句如下:
select * from userInfo where phone is null;
这样在sql server里查询是可以的。
我之前是这样写的:where phone=' ' 这样写在sql server里是查不到的,有大神可以告诉我为什么吗。