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';

猜你喜欢

转载自feuyeux.iteye.com/blog/1754276
今日推荐