【发布时间】:2018-08-06 20:55:13
【问题描述】:
我有一个数组 $time_schedule_id= array(1,3,5)。现在我想要那些与 $time_schedule_table 中的给定数组( $time_schedule_id= array(1,3,5) )不匹配的数据。
DB::table('time_schedule_table')
select('*')
where('id','!=', ?)
如何生成此查询字符串以与 MySQL 一起使用?
【问题讨论】:
-
在 laravel 中使用 whereNotIn