SQL语句 在sc表中查询至少选修了两门课的学生学号的语句

人气:475 ℃/2026-08-04 00:29

select 学号,count(课程) as 选修门数 from sc group by 学号 having count(课程)>1

百科

首页/问答/网名/PC版
© 2026 NiBaKu.Com All Rights Reserved.