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.
重複の可能性: テーブルの最後の行を取得する方法 - Oracle 11g?
テーブルに最後に挿入された詳細を取得して確認したいので、最後に挿入されたレコード値を取得する方法を知りたい
insert into mytable (...) values (...) returning id into v_id;
主キーがある場合:
select * from YOURTABLE where primary_key=(select max(primary_key) from YOURTABLE)