Oracle查询前几个数据或者从第几行开始查询
Oracle Mysql SQL Service 他们三个的方式都不一样 今天只介绍oracle的 其他两种比较简单可以自行百度
比如我需要查询前三条数据
select b.* from
(select a.* ,rownum as vseq from 表名 a where rownum <= 3) b
where b.vseq >= 1
ORDER BY time DESC
或者我需要从第三条开始 查询
select * from
(select rownum as xulie,a.* from 表名 a)
where xulie > 3
order by
time desc