user2793872
user2793872

Reputation: 319

Retrieving latest Record in to the table

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

Answers (1)

The Humble Rat
The Humble Rat

Reputation: 4696

A simple select statement should do it

SELECT * from temp 
ORDER BY sid DESC
LIMIT 1

Upvotes: 2

Related Questions