ERROR 1215 (HY000): Cannot add foreign key constraint
摘要:
alter table 表名字 add constraint fk_当前表_关联表 foreign key(列) references 另一个表(列); 添加外键约束时报错,原因是两张表的字符集不一致, 查看字符集show create table 表名; 到这里问题还没得到解决,发现,列的字符集也 阅读全文
posted @ 2020-12-03 17:41 刀锋93 阅读(263) 评论(0) 推荐(0)
浙公网安备 33010602011771号