thinkphp is NULL表达式写法

thinkphp  中如果这样写 $where['status']=array('EQ','NULL'),打印出来sql是WHERE ( `status` = 'NULL' );而我想要的是 `status` is null 这种,因为我字段为null的 =null查不出来,解决:

$where['status']=array('EXP','IS NULL');

 

posted @ 2019-09-26 15:35  戈丫汝  阅读(2776)  评论(0编辑  收藏  举报