问答 / 3562 / 3 / 创建于 5年前
laravel5.5 where条件两个字段的运算怎么写规范?
用whereRaw + 原生sql片段
$query->whereRaw( DB::connection('finace')->select('select checktime from cpy_finace_private where UNIX_TIMESTAMP(NOW()) - checktime > 31536000 '));这样行不通,是不是写错了
$model->whereIn(DB::raw("CONCAT_WS('-', sign_year, sign_month)"), array_get($currentDate, 'date'));
我要举报该,理由是:
推荐文章: