select students.*
from students, grades
where students.sno=grades.sno
AND grades.cno <> ’B2’
上面的查询方式是错误的,正确方式见下方:
select * from students
where not exists (select * from grades
where grades.sno=students.sno AND cno='B2')
这两中方法都正确吗
select students.*
from students, grades
where students.sno=grades.sno
AND grades.cno <> ’B2’
上面的查询方式是错误的,正确方式见下方:
select * from students
where not exists (select * from grades
where grades.sno=students.sno AND cno='B2')
这两中方法都正确吗
2007-04-22 19:41
有谁能告诉我上面那种方法为什么不对
2007-04-22 19:42
2007-05-11 01:36
2007-05-16 00:52
2007-05-16 11:16
2007-05-17 09:18
2007-05-17 16:57
2007-05-23 19:59
2007-06-02 16:59

2007-06-03 20:53