Possible Duplicate:
How to get the last row in a table - Oracle 11g?
I would like to know how we can get the last inserted record values back as I want to retrieve and see the details that are inserted at last in the table
Possible Duplicate:
How to get the last row in a table - Oracle 11g?
I would like to know how we can get the last inserted record values back as I want to retrieve and see the details that are inserted at last in the table
insert into mytable (...) values (...)
returning id into v_id;
If you have a primary key:
select * from YOURTABLE
where primary_key=(select max(primary_key) from YOURTABLE)