How to get the last row of an Oracle a table

后端 未结 7 2266
名媛妹妹
名媛妹妹 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:23

    SELECT * FROM (
        SELECT * FROM table_name ORDER BY sortable_column DESC
    ) WHERE ROWNUM = 1;
    

提交回复
热议问题