Reputation: 319
I have one table temp(sid integer, sname varchar, adress varchar)
This table contains 10 records I need to retrieve latest insert records
Upvotes: 0
Views: 51
Reputation: 4696
A simple select statement should do it
SELECT * from temp
ORDER BY sid DESC
LIMIT 1
Upvotes: 2