外键的使用

一定要  先删除 sc表 中的  某元组   行,,,再删除  course表中的  元组行.note

一定要  先删除 sc表 中的  某元组   行,,,

再删除  course表中的  元组行

course

外键的使用

SC

外键的使用

删除  course表中的  元组行,,出现错误

 sc    ---->参照 course

P155 删除元组 行    破坏 参照完整性   

外键的使用

外键约束    关系列  必须   长度相同.note

 

外键的使用

   关系列  必须   长度相同.note

外键的使用