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