单项选择题

在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 班主任='王笑笑')

微信扫码免费搜题