2011-08-25 64 views

回答

1

是的,如果您的數據庫設置爲允許您一次運行多個數據庫的查詢。我認爲它看起來像這樣,

INSERT INTO db2.mrg1 (colA,colB,ColC) 
(
    SELECT colA,colB,ColC 
    FROM db1.tbl1,db1.tbl2,db1.tbl3 
    WHERE [whatever joins your tables together] 
)