首页 > 试题广场 >

MySQL中表student_table(id,name,b

[单选题]
MySQL中表student_table(id,name,birth,sex),score_table(stu_id,subject_name,score),查询没有英语分数的学生明细记录,下面SQL正确的是
  • select * from student_table where id in (select stu_id from score_table where subject_name <> '英语');
  • select * from student_table where id not in (select stu_id from score_table where subject_name = '英语');
  • select * from student_table where id not in (select stu_id from score_table where subject_name <> '英语');
  • select * from student_table where id in (select stu_id from score_table where subject_name = '英语');
b选项不严谨啊,有可能score_table有stu_id,subject_name为“英语”,但是没有分数这种也有可能啊
发表于 2025-06-18 19:31:05 回复(0)