select q.user_id, q.question_type, q.device, q.pass_count, q.date from questions_pass_record q left join user_info u on q.user_id = u.user_id where graduation_year = '2022' 题目中没有问到,但做题的时候想起来了,顺道补充一下从 date里面提取年份在 SQL 中,从日期(date)类型字段中提取年份的方法因数据库不同而略有差异,以下是主流数据库的实现方式:1. MySQL使用 YEAR() 函数,直接提取年份:sql SEL...