thinkphp is NULL表达式写法

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

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

猜你喜欢

转载自www.cnblogs.com/gyrgyr/p/11592142.html
今日推荐