Answers for "get last row oracle sql"

SQL
2

get last record in sql

SELECT * FROM TableName WHERE id=(SELECT max(id) FROM TableName);
Posted by: Guest on July-29-2021
-1

sql oracle take only last results

select * from table_name ORDER BY primary_id DESC FETCH FIRST 1 ROWS ONLY;
Posted by: Guest on July-28-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language