2
我想作这样的SQL请求,:雄辩Laravel在哪里,或者与
获取((
Age > 10
和Weight > 50
)ORName = Jack
)和Actif = 1
我的口才要求这个样子的:
$user = DB::table('users')
->where('Age', '>=', 10)
->where('Weight', '>=', 50)
->orWhere('Name', 'Jack')
->where('Actif', 1)
->get();
但实际上它会返回结果Jack
虽然此列Actif is set to 0
。