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.
インデックス付きの行も特定の列もないテーブルがあります...
「City、PersonName、PersonAge」としましょう。そのテーブルに挿入された最後の5 人を取得する必要があります...
DB2でそれを行うにはどうすればよいですか?
私は試した
select * from PEOPLE fetch first 5 rows only
これは完全に機能します...しかし、LAST行でそれを行う方法がわかりません....