父子查询

复杂的查询:

select * from 学生表 where 所属班级编号=(select 班级编号 from 班级表 where 条件)

主句

select * from 学生表 where 所属班级编号=()

子句:select 班级编号 from 班级表 where 条件

 

posted @ 2018-04-10 22:36  newRohLzy  阅读(98)  评论(0编辑  收藏  举报