首页 试题广场 > 试题详情
单选题

【C400160】在MySQL中,查找出班主任“刘成河”班的全部男生的信息,则正确的SQL语句是()。

  • A.select * from 学生 where 性别='男' and 班级编号 == (select 班级编号 from 班级 where 班主任='刘成河')
  • B.Select * from 学生 where 性别='男' and 班级编号 
    in (select 班级编号 from 班级 where 班主任='刘成河')
  • C.Select * from 学生 where 性别='男' and 班级编号 
    union (select 班级编号 from 班级 where 班主任='刘成河')
  • D.Select * from 学生 where 性别='男' and 班级编号 as (select 班级编号 from 班级 where 班主任='刘成河')
提交并查看答案
下一题 上一题
Ke星伙伴们的回答/ 71个回答
关闭
关闭
QQ
交流群
邀请
好友
App
下载
意见
反馈
返回
顶部