如果YY里只有ABC三个字段 insert into yy (select a,b,c from xx)
如果YY里除ABC三个字段还有起他 Insert into yy (a,b,c) select a,b,c from xx
1、如果在同一数据库中,请使用楼上的方法2、如果在同一台设备中的不同数据库中,请使用: Insert into databaseB.dbo.yy (a,b,c) select a,b,c from databaseA.dbo.xx3、如果在不同设备中的数据库中,请使用: Insert into databaseB.dbo.yy (a,b,c) select a,b,c from (openrowset '数据库驱动','电脑名','sa';'psw', 'select a,b,c from databaseA.dbo.xx') A我想搂主问的是不是第三种情况。
insert into yy (select a,b,c from xx)
Insert into yy (a,b,c) select a,b,c from xx
select a,b,c from (openrowset '数据库驱动','电脑名','sa';'psw',
'select a,b,c from databaseA.dbo.xx') A我想搂主问的是不是第三种情况。