本帖最后由 kamui_shiron 于 2009-10-12 20:06:08 编辑

解决方案 »

  1.   

    delete from student 
    where sno in 
    (
    Select sno from sc 
    inner join course on sc.cno=course.cno and course.cname='C语言程序设计' 
    )
      

  2.   

    可以解释下:inner join course on sc.cno=course.cno and course.cname='C语言程序设计' 吗?
    inner join 是什么意思?
      

  3.   

    delete 
      t  
    from 
      (select a.* from student a join sc b on a.sno=b.sno join course c on b.cno=c.cno
     where a.sname='C语言程序设计')
      

  4.   

    --差个t
    delete 
      t  
    from 
      (select a.* from student a join sc b on a.sno=b.sno join course c on b.cno=c.cno
     where a.sname='C语言程序设计')t
      

  5.   

    delete student from sc inner join course on sc.cno=course.cno and student.sno=sc.sno and course.cname='C语言程序设计' 
      

  6.   

    课程表course 和 sc(选课表)通过课程编码内连接 找到选课是'C语言程序设计'的学生学号inner join 内连接
      

  7.   

    表间用的是外键,这应该不需要内连接吧?用上述代码执行时提示student无效
      

  8.   

    现在提示student无效应该如何解决,囧囧
      

  9.   


    delete from student
    where sno in (select s.sno from sc s,course c where s.cno=c.cno and c.cname='C语言程序设计')