1. 程式人生 > >mysql中的sql語句

mysql中的sql語句

#全選課的學生
select sname
from student s
where not exists 
(select * from course c
where not exists 
(select * from sc
where sid =s.sid
and sc.cid=c.cid) 
)