日期:2014-05-17 浏览次数:20684 次
select * from Student where studentName in (select studentName from Student group by studentName having count(*)>1);
select * from Student where studentid not in(select studentid from relation);
select * from Student a ,
(select studentid from relation where courseid in (select courseid from course)) b
where a.studentid = b.studentid;