如果写成下面的格式
select * from user_code where gwid='';
查询不到为null的行是可以理解的,但出错就不可理解了。
如果要取出值为null的行,应该写成:
select * from user_code where gwid is null;
select * from user_code where gwid='';
查询不到为null的行是可以理解的,但出错就不可理解了。
如果要取出值为null的行,应该写成:
select * from user_code where gwid is null;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货