not exists在嵌套子查询中如何使用
1、select 学生.姓名 from 学生
where not exists(
select * from 课程 where not exists(
select * from 选读 where 学号=学生.学号 and 课程号=课程.课程号))
2、select 学生.姓名 from 学生
where not exists(
select * from 选读 where 学号=学生.学号 )
sql语句问题,关于not exists和子查询问题
not exists 是sql 不返回结果集,为真。可以简单理解为:如果 A.sno not exists B.sno查询出来就是A不存在与B的sno。可以百度一下not exists
送上连接:网页链接