日期:2014-05-18  浏览次数:20743 次

.net 表之间的数据传递
问题是这样的:我有两台服务器,每台服务器上有一个数据库,现在我在服务器A当中有一个表table1,在服务器B当中也有一个表table1,如何在不知道表列数的情况下,把A当中的表的某几条数据放到B当中的表当中来??

有会做的给满分了!!!!!!!!!!


在线等!!急!!!!!!!!!!!

------解决方案--------------------
问题不清,都不知道列数,那你能知道要取哪几条数据?要取哪些列呢??
------解决方案--------------------
select 服务器A,updata服务器B
------解决方案--------------------
不是updata是insert

------解决方案--------------------
首先连接A库将数据导入临时表tmp 
insert into tmp as
select a,b,c from table

再打开B库 通过临时表tmp导出
insert into table(a,b,c)values as
select a,b,c from tmp