oracle取前10条记录

时间:2019-09-29 20:01:01   收藏:0   阅读:3112
--oracle取前十条数据
--(1)第一种
select * from t_base_employee where rownum < 11;

--(2)第二种
select * from (select * from t_base_employee t order by t.modify_time desc) where rownum <= 10;

 

原文:https://www.cnblogs.com/henuyuxiang/p/11609174.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!