2
我加入这行添加ignore
MySQL数据库:的MySQL 5.6.20错误ALTER忽略表
ALTER IGNORE cms_books_author name ADD UNIQUE(name)
,但我得到这个错误:
Error
SQL query:
ALTER IGNORE cms_books_author name ADD UNIQUE(name)
MySQL said: Documentation
#1064 - 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 'efcms_books_author name ADD UNIQUE(name)' at line 1
MySQL的版本是:5.6.20
我该如何解决这个错误?谢谢。
缺少表格并调整唯一索引的语法:'ALTER IGNORE表cms_books_author ADD UNIQUE(name);' – amdixon
@amdixon:你说得对。为你接受接受答案。 – Perspolis