mysql insert into select

MySQL does not support the SELECT ... INTO ... syntax.


#1327 - Undeclared variable: newsletter_to_send:

SELECT f.id, f.name INTO ABAB1 FROM friend_status f WHERE f.name = 'John';


right:

INSERT INTO abab(id,name) SELECT f.id, f.name FROM friend_status f WHERE f.name = 'John';

你可能感兴趣的:(mysql insert into select)