select top 10 * from 表名 select top 10 * from 表名 order by 自动增长编号 desc 请把上述两行的汉字替换成你的表名或列名(字段名)
两次排序 升序取前20 再降序取前10
select top 10 * from A where mainKey is not in
(
select top 10 mainKey from A
)
A为表名,mainKey为表的主键
select top(20) * from 表where lsh not in(select top(10) lsh from 表where 条件) and 条件
select top 10 * from (select top 20 * from 表 order by id asc) as a order by id desc