文章目录 建表失败Can't write; duplicate key in table '表名' 建表失败 Can’t write; duplicate key in table ‘表名’ 很大原因是因为外键名重复,修改一下外键名