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.
コメント履歴の表があります。日付(新しいものから古いものへ)に基づいてデータを(句ごとに)並べ替えた後、10個のデータのみを選択する必要があります。それを達成する方法を教えてもらえますか?それはrownumを使用して行うことができますか?
SELECT * FROM ( SELECT * FROM comment ORDER BY comment_date DESC ) WHERE rownum <= 10