开发者

insert into select mysql two database

开发者 https://www.devze.com 2023-01-25 05:11 出处:网络
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

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

精彩评论

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