insert into db2.table2 (field1,field2,..,fieldN)
select field1,field2,..,fieldN from db1.table1
編集。 2つの異なるデータベース間で更新を行う必要がある場合、これは正しい構文です:
update
db2.table2 as t2,
db1.table1 as t1
set
t2.field1 = t1.field1,
t2.field2 = t1.field2,
t2.field3 = t1.field3
where t1.id = t2.id