TP5不支持的数据表达式:[exp]

浏览:12741 发布日期:2018/07/27 分类:ThinkPHP5专区
代码:
public function index()
{
$result = Db::name('user')
->where('id',15)
->update([
'create_time'=>['exp','now()'],
'update_time'=>['exp','create_time+1'],
]);
return $result;
}
错误提示:
不支持的数据表达式:[exp]
是我哪时写错了吗?
最佳答案
评论( 相关
后面还有条评论,点击查看>>