Force InnoDB to recheck foreign keys on a table/tables?

后端 未结 5 908
暖寄归人
暖寄归人 2020-11-28 18:34

I have a set of InnoDB tables that I periodically need to maintain by removing some rows and inserting others. Several of the tables have foreign key constra

5条回答
  •  青春惊慌失措
    2020-11-28 19:20

    There is no tool, that can do that. But you can write a script, that will walk through all your tables, drop and recreate foreign key constrains. On recreation, there will be an error if something is wrong.

提交回复
热议问题