How to get the last row of an Oracle a table

后端 未结 7 2245
名媛妹妹
名媛妹妹 2020-11-28 08:31

I want to get the last row, which I inserted into a table in an Oracle 11g Express database. How can I do this?

7条回答
  •  渐次进展
    2020-11-28 09:08

    select * from table_name ORDER BY primary_id DESC FETCH FIRST 1 ROWS ONLY;
    

    That's the simplest one without doing sub queries

提交回复
热议问题