复制代码 代码如下:
select top 200 * into #aa from table order by time-- 将top m笔插入 临时表
set rowcount 100
select * from #aa order by time desc
--drop table #aa --删除临时表
复制代码 代码如下:
select top 100 * from
(select top 200 * from table order by time asc) a
order by time desc
复制代码 代码如下:
select top 100 * from v_company where (
id not in
(select top 100 id from v_company order by id asc)
) order by id asc
新闻热点
疑难解答