0
INSERT INTO print_development.categories (id, name)
VALUES (select id, name from print_pro.categories where parent_id is NULL);
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 id, name from print_pro.categories where parent_id is NULL)' at line 2
沒錯,但錯手冊頁:http://dev.mysql.com/doc/refman/5.5/en/insert-select.html –
+1之前我從來不知道這個 –