0
谁能告诉我Laravel 5等效查询(雄辩或查询生成器),用于下面的查询 -Laravel 5子查询雄辩或查询生成器
select * from questions where id NOT in (select question_id from answers where student_id=5) AND exam_id=4
谁能告诉我Laravel 5等效查询(雄辩或查询生成器),用于下面的查询 -Laravel 5子查询雄辩或查询生成器
select * from questions where id NOT in (select question_id from answers where student_id=5) AND exam_id=4
由我自己解决,
这完美的工作了我
$ questions = DB :: select(“select * from questions where id not in(select question_id from answers where student_id = 5)AND exam_id = 4”);