INSERT INTO `competitions` (`name`) VALUES SELECT `name` FROM `competitions`
产生以下错误:INSERT INTO SELECT不起作用
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 'SELECT
name
FROMcompetitions
' at line 1
我可能忽视的东西微不足道,但我真的不明白我在做什么错在这里。
删除'VALUES'。请参阅语法:http://dev.mysql.com/doc/refman/5.5/en/insert.html – biziclop