我有以下查询
SELECT * FROM answers where (id_question in (select id from questions where id_quiz = 3))
我需要知道如何用Laravel雄辩地编写它
Answer::whereIn('id_question', function($query) {
$query->table('questions')->where('id_quiz', 3)
})->get();
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句