以下代码是备份脚本(可能使用mysqldump
)生成的较大查询中的一个最小示例。它导致错误,我不知道为什么。谁可以帮忙?备份脚本中的错误查询导致错误1064
CREATE TABLE `tl_custom_tandem_lang` (
`id` varchar(2) COLLATE latin1_german2_ci NOT NULL,
PRIMARY_KEY (`id`),
UNIQUE KEY `id` (`id`)
);
主要生产以下错误:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(
id
), UNIQUE KEYid
(id
))' at line 3
不错。接得好! – Pedigree