590
社区成员
发帖
与我相关
我的任务
分享
select * from A..student --A库中student的数据
union all
select * from B..student --B库中student的数据
union all
.....
select * from db1.dbo.table1
union all
select * from db1.dbo.table2
union all
select * from db2.dbo.table1
union all
.......
如果还想保留这个数据的来源,就把select * from 改成 select *,'db1.tb1' as frm 这样的格式