Home > Database > Mysql Tutorial > MySQL修改外键删除时操作出现error 121解决办法

MySQL修改外键删除时操作出现error 121解决办法

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:13:02
Original
1135 people have browsed it

环境:MySQL Server 5.1 + Navicat for Mysql 8.2 问题:修改外键删除时操作出现121错误 解决: 把外键名改为其他名字。 错误信

环境:MySQL Server 5.1 + Navicat for Mysql 8.2

问题:修改外键删除时操作出现121错误

解决:

把外键名改为其他名字。

错误信息参考:

error 121

这是外关键字名字重复的错误,即使是在不同的表中,外关键字的名字也不能重复。

error 150

这类错误包括3种情况:
1. 外键和被引用外键类型不一样,比如integer和double;
2. 找不到要被引用的列;
3. 表的字符编码不一样。

linux

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template