0
我需要laravel查詢構建器來獲取''
作爲gdate
來做另一個查詢的聯合。在php框架中獲取空值,laravel查詢構建器
下面的例子:
$unionquery = DB::table('mt_task_category')
->whereIn('role_id', [1])
->select('null as gdate', 'null as user_id',
'category_id', 'category_name',
'null AS timeSum', 'null AS gdfullname',
'null AS id', 'null AS pmfullname', 'null AS role_name');