sql:
select top {Y-X} from 表名 where ID not in (select top {X} ID from 表名 order by ID desc)
-- 分页
select top {N} * from 表名 where ID not in (select top {(page - 1) * N} ID from 表名 order by ID desc)
mysql:
select * from 表名 limit {X-1},{Y}
select * from 表名 limit {(page-1)*N},{N}