Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个名为employee 的表,其中有几个作业在后台运行,将数据插入到表中,请告知我可以从表中获取最后4 条记录的查询,我使用oracle 作为数据库。
您可以为此使用子查询
select * from ( select * from tableName order by id desc ) where ROWNUM <= 4;