条件查询 EXP 报错
发布于 2019-05-17 11:10:44
$where['g.deletetime'] = ['exp', 'is null'];
报错信息:
Exception in Builder.php line 398
查询表达式错误:EXP
解决办法:请使用\think\Db::raw("is null")
写法:
$map['ship_sn'] = ['exp',Db::raw('is null')];
发布于 2019-05-17 11:10:44
$where['g.deletetime'] = ['exp', 'is null'];
报错信息:
Exception in Builder.php line 398
查询表达式错误:EXP
解决办法:请使用\think\Db::raw("is null")
写法:
$map['ship_sn'] = ['exp',Db::raw('is null')];