开发者

insert into select mysql two database

is there any similar syntax to this in mysql:

insert into da开发者_高级运维tabase2.table1 (column1, column2) select column4, column5 from database2.table1;


looks good. are you getting an error?


I create a view for the columns I wanted to copy

than i run this query:

insert into database2.table1 (column1, column2) select * from database1.view;

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜