0
我使用兩個表格,即上傳和位置。我正在嘗試在laravel中編寫一個原始的sql語句,但不確定它的正確與否。我想要顯示位置表的所有列,其中city =「something」和project_id =「something」.Project_id屬於位置表。Laravel原始SQL語句嵌套在哪裏
$get_all_data = \DB::select('select * from locations where city = ?', [$city],'select * from uploads where project_id=?',[$getProjectId]);