Mysql Rgd:将表从一个连接复制到另一个连接

Mysql Rgd:将表从一个连接复制到另一个连接,mysql,sql-server,database,Mysql,Sql Server,Database,我要点菜 table1 that use $connection (that is tie to database DB1) table2 that use $connection2 (that is tie to database DB2) 我还有一个叫桌电话 table1 that use $connection (that is tie to database DB1) table2 that use $connection2 (that is tie to database DB2

我要点菜

table1 that use $connection (that is tie to database DB1)
table2 that use $connection2 (that is tie to database DB2)
我还有一个叫桌电话

table1 that use $connection (that is tie to database DB1)
table2 that use $connection2 (that is tie to database DB2)
我想将表1记录(使用where条件的行的1)复制到表2中

我用的是

INSERT into table 1(column) select * from table 2 where ID='$record'
问题是当我执行我的sqlsrv\u查询时

我只能选择1 sql连接执行,如何解决此问题,以便使用connection2选择语句和使用connection1插入语句。在1 sqlsrv_查询中