sqlserver数据库查询某个字段 为null的所有行数据

  • 内容
  • 评论
  • 相关


thinkphp语法:

$mcardcategory=D('tcardcategory');

$cardcategory_information=$mcardcategory->where("CardNumber='1263'  and  (ISNULL(IsExchange, '')='' or IsExchange='是')")->select();


原生sql:

SELECT * FROM tcardcategory WHERE ( CardNumber='1263'  and  (ISNULL(IsExchange, '')='' or IsExchange='是') );

本文标签:这篇文章木有标签

版权声明:若无特殊注明,本文皆为《菜鸟站长》原创,转载请保留文章出处。

本文链接:sqlserver数据库查询某个字段 为null的所有行数据 - http://www.wlphp.com/?post=33

发表评论

电子邮件地址不会被公开。 必填项已用*标注