无法删除索引'user_city_id_foreign':在外键约束中需要

2022-08-06

以下示例是关于Whatever中包含无法删除索引'user_city_id_foreign':在外键约束中需要用法的示例代码,想了解无法删除索引'user_city_id_foreign':在外键约束中需要的具体用法?无法删除索引'user_city_id_foreign':在外键约束中需要怎么用?无法删除索引'user_city_id_foreign':在外键约束中需要使用的例子?那么可以参考以下相关源代码片段来学习它的具体使用方法。

[英]:Cannot drop index 'users_city_id_foreign': needed in a foreign key constraint源码类型:Whatever
You have to drop the foreign key. Foreign keys in MySQL automatically create 
an index on the table

ALTER TABLE mytable DROP FOREIGN KEY mytable_ibfk_1 ; 

本文地址:https://www.itbaoku.cn/snippets/795595.html