-- 班级表 BJ-- 学生表 Stu/* 这是查询班级信息,下面写查询学生信息/*select * from BJ where id = (select 班级表ID字段 from Stu where 条件='xx');/* 查询学生表信息*/select s.* from BJ b,Stu s where b.ID = s.班级表ID字段 and s.条件='xx';