关于exists谓词的问题
关于exists的嵌套查询不是很了解,请高手帮忙解释一下.
比如:
select sname
from student
where not exists
(
select *
from course
where not exists
(
select *
where sno=student.sno
and cno=course.cno;
)
)
该如何来理解! 谢谢
问题点数:20、回复次数:2Top
1 楼laoliu666(鹅鹅鹅,曲项向天歌,白毛浮绿水,红掌拨清波。)回复于 2006-12-03 23:03:44 得分 20
exists
简单说就是看后面条件是否成立Top
2 楼marco08(天道酬勤)回复于 2006-12-03 23:35:32 得分 0
--参考
http://community.csdn.net/Expert/topic/5203/5203296.xml?temp=.4695551Top




