【发布时间】:2015-10-30 05:57:40
【问题描述】:
我正在尝试删除表中的所有数据行并重置自动增量。当我这样做时,我会收到以下消息:
Unexpected number of rows removed!
One row was not removed. Reload the table to be sure that the contents
have not changed in the meantime. Check the Console for possible errors
inside the primary keys of this table!
更新 当我执行 TRUNCATE TABLE 'users' 时,我会收到此消息
Cannot truncate a table referenced in a foreign key constraint
(`marketing`.`designer_application`, CONSTRAINT
`designer_application_user_id_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES
`marketing`.`users` (`id`))
【问题讨论】:
-
截断表名;菜单中还有一个项目
-
这将帮助您决定访问:dba.stackexchange.com/questions/61240/…>
标签: mysql sequelpro database-management