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.
我有一张评论历史记录表。根据日期(从新到旧)重新排列数据(按子句排序)后,我只需要选择十个数据。我可以知道如何实现吗?这可以使用rownum来完成吗?
SELECT * FROM ( SELECT * FROM comment ORDER BY comment_date DESC ) WHERE rownum <= 10