You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Db::table('think_user')
->where('id', 'IN', function ($query) {
$query->table('think_profile')->where('status', 1)->field('id');
})
->select();
这个查询的不是in,是=,怎么解决
同样
Db::table('think_user')
->where('id', 'IN', '(select user_id from think_vips)')
->select();
生成的语句为 select * from think_user where id = (select user_id from think_vips)
预期的则是 select * from think_user where id in (select user_id from think_vips)
The text was updated successfully, but these errors were encountered:
Db::table('think_user')
->where('id', 'IN', function ($query) {
$query->table('think_profile')->where('status', 1)->field('id');
})
->select();
这个查询的不是in,是=,怎么解决
同样
Db::table('think_user')
->where('id', 'IN', '(select user_id from think_vips)')
->select();
生成的语句为 select * from think_user where id = (select user_id from think_vips)
预期的则是 select * from think_user where id in (select user_id from think_vips)
The text was updated successfully, but these errors were encountered: