//not in不在范围之内
//in在范围之内的
select * from table1 where id in (1,2,3); //查询结果1,2,3,反之not in查询结果不包含1,2,3
db::name('name')->where('id','in','1,2,3')->select();
PHP查询中not in 和in的区别
于 2020-12-24 13:48:31 首次发布
//not in不在范围之内
//in在范围之内的
select * from table1 where id in (1,2,3); //查询结果1,2,3,反之not in查询结果不包含1,2,3
db::name('name')->where('id','in','1,2,3')->select();