• 2022-06-15
    ​如果在“学生-课程”数据库中,希望当删除Student表中的元组时,级联删除SC表中相应的元组,则在定义SC表时,应有语句____________________。‎
    A: FOREIGN KEY (Sno) ON DELETE CASCADE Student(Sno)
    B: FOREIGN KEY (Sno) ON DELETE NO ACTION Student(Sno)
    C: FOREIGN KEY (Sno) REFERENCES Student(Sno) ON DELETE NO ACTION
    D: FOREIGN KEY (Sno) REFERENCES Student(Sno) ON DELETE CASCADE
  • 举一反三