cccicl
cccicl
发布于 1个月前

ThinkPHP 查询条件多维数组中判断是否为 null 怎么写

$where = [];
$where[] = ['mobile','EXP,Db::raw('IS  NULL')];
$where[] = ['name','EXP,Db::raw('IS NOT NULL')];

Db::name('table_name')->where($where)->select();
©2020 edoou.com   京ICP备16001874号-3