且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法删除外键约束引用的表

更新时间:2023-02-02 22:46:47

如您的例外所述:

DROP TABLE IF EXISTS `link`; nested exception is java.sql.SQLException: Cannot drop table 'link' referenced by a foreign key constraint 'FK336ctjyksuuwnpmffcogcdyet' on table 'vote'.

首先应该重新创建 vote 表,然后才能重新创建 link 表.

you should at first recreate the vote table and only after that you can recreate the link table.