alter table book add constraint Fk_Relationship_3 foreign key(catalogid)
references catalog(catalogid) on delete restrict on update restrict;
ERROR 1022(23000):Can't write;duplicate key in table '#sql-538_43'
如何解决问题?
有key值重复导致冲突了吧?
把外键名改了试试,,错误提示是关键字重复