关于如何清空存在依赖关系的表

设表 student,course,sc

student中的sno为主键

course中cno为主键

sc中sno和cno为外键

 

如果按照student,course,sc的顺序情况,那么会出现因为student,course存在依赖关系而无法情况数据的情况

因此这种情况下应该将顺序调整为sc,student,course

这样就可以啦

posted @ 2023-04-25 11:03  椰子灰  阅读(42)  评论(0)    收藏  举报