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

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

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

05-06 13:43