select *
from questions_pass_record 
where user_id in  (select user_id from user_info where graduation_year = '2022')
-- 取出2022毕业的学号,遍历筛选