![]() |
#2
心中有剑2007-10-11 13:29
|
select s#,sname
from s
where s# in (select s#
from sc
where c#='c2');
select s#,sname
from s
where exists(select *
from sc
where sc.s#=s.s# and c#='c2');
各位帮忙比较一下这两种查询的区别?
那个效率更高?为什么?