SQL 练习13

  • 查询没学过"张三"老师讲授的任一门课程的学生姓名
SELECT * from Student WHERE SId not in (

SELECT SC.SId from Teacher,Course,SC WHERE  Teacher.TId = Course.TId AND Course.CId = SC.CId AND Teacher.Tname='张三')

SQL 练习13

上一篇:数据库查询优化


下一篇:mysql----id主键列乱了之后,重新排序