![]() |
#2
makebest2008-04-02 21:24
|
--求选修了C2课程的学生姓名
select 姓名
from 学生
where exists(select *
from 选课
where 学生.学号=选课.学号 and 课程号='c2')
这个 exists是检测行的存在。在这有什么意义,它只是判断了该这几行存在不 没有说要取那几行