oracle数据库只查询前n条
select
*
from
(
select
*
from
tablename
order
by
createdate
desc
) aaa
-- 按创建时间倒排序
where
rownum <= 1000;
We only live once, and time just goes by.
select
*
from
(
select
*
from
tablename
order
by
createdate
desc
) aaa
-- 按创建时间倒排序
where
rownum <= 1000;