Failed to add the foreign key constraint. Missing index for constraint ‘map_serial’ in the referenced table ‘mappertable’
父表联合主键有可能会导致外键创建失败
解决方式 :
删除不相关主键,建立外键之后,将主键还原.
方式二 将对应主表的对应字段设置为unique字段
在尝试使用外键构建联系.
Failed to add the foreign key constraint. Missing index for constraint ‘map_serial’ in the referenced table ‘mappertable’
父表联合主键有可能会导致外键创建失败
解决方式 :
删除不相关主键,建立外键之后,将主键还原.
方式二 将对应主表的对应字段设置为unique字段
在尝试使用外键构建联系.