我收到以下错误。
任何解决方案?我已经将数据库拆分为7个部分。这是我上传时遇到的最后一部分:
SQL查询:
INSERT INTO `smf_themes` (`id_member`, `id_theme`, `variable`, `value`)
VALUES (17376, 1, 'cust_fbc_pro', ''),
(17377, 1, 'display_quick_reply', '1'),
(17377, 1, 'cust_twitter', 'aocsujbujp'),
(17377, 1, 'cust_fbc_pro', 'http://snapbird.org/'),
(17378, 1, 'display_quick_reply', '1'),
(17378, 1, 'cust_twitter', ''),
(17378, 1, 'cust_fbc_pro', ''),
(17379, 1, 'display_quick_reply', '1'),
(17380, 1, 'display_quick_reply', '1'),
(17380, 1, 'cust_twitter', ''),
(17380, 1, 'cust_fbc_pro', ''),
(17381, 1, 'display_quick_reply', '1'),
(17381, 1, 'cust_twitter', ''),
(17381, 1, 'cust_fbc_pro', ''),
(17382, 1, 'display_quick_reply', '1'),
(17382, 1, 'cust_twitter', ''),
(17382, 1, 'cust_fbc_pro', ''),
(17383, 1, 'display_quick_reply', '1'),
(17383, 1, 'cust_twitter', 'cymjemqpmo'),
(17383, 1, 'cust_fbc_pro', 'http://www.viddyou.com/'),
(17384, 1, 'display_quick_reply', '1'),
(17384, 1, 'cust_twitter', 'izehcnqmsj'),
(17384, 1, 'cust_fbc_pro', 'http://www.yourkindatv.com/
[...]
MySQL给了我错误:
#1062 - 重复'PRIMARY'重复录入'1-17403-cust_twitter'
答案 0 :(得分:1)
#1062 - Duplicate entry '1-17403-cust_twitter' for key 'PRIMARY'
这很简单意味着您尝试插入重复数据。 主索引位于3列:
`id_member`, `id_theme`, `variable`
因此,要解决此问题,请检查输入SQL并删除重复数据或修改主键规范。