thinkphp查询某个字段为空的数据

$where['name'] = ['exp', 'is null'];  //为空的

$where['name'] = ['exp', 'is not null']; //不为空的

猜你喜欢

转载自www.cnblogs.com/qhorse/p/9668052.html