orcle 获取前 10条数据
select
*
from
ter_phs_deduct_list
where
rownum
<
11
order
by
agent_key
desc
;
本文介绍了一种使用 Oracle 数据库获取指定表中前 10 条记录的方法。通过限制 ROWNUM 的值来实现快速查询,同时按照 agent_key 字段进行降序排列,确保返回的数据是最新的记录。
orcle 获取前 10条数据
select
*
from
ter_phs_deduct_list
where
rownum
<
11
order
by
agent_key
desc
;
4553

被折叠的 条评论
为什么被折叠?