先建立链接服务器 然后UNION ALL 一下----- ?? 上亿条数据一次排序显示显示出来,有什么必要?
UNION all +top 不太明白,希望您能解析一下
simonhehe(流氓会武术,谁也挡不住) 的方法应该是对的,我再多罗嗦几句先建立链接服务器,例如叫linksvr select top 1000 * from ( select * from 表 union all select * from linksvr.database.表 ) order by id
top 1000能常识的讲一下吗?
top 1000 取前1000行数据。
那么没显示的信息他不是也占一定的空间吗?我用视图可以吗? create view found_inf as select * from table union all select * from linksvr.database.table 这样可以吗?
然后UNION ALL 一下----- ?? 上亿条数据一次排序显示显示出来,有什么必要?
select top 1000 * from (
select * from 表
union all
select * from linksvr.database.表 ) order by id
取前1000行数据。
create view found_inf as
select * from table
union all
select * from linksvr.database.table
这样可以吗?