Link to home
Start Free TrialLog in
Avatar of ekartha
ekartha

asked on

Postgresql Querying the last 10 records from the database

Hi Sir,
Can you help me in writing a query for retrieving Postgresql Querying the last 10 records (recent) from the database. Its urgent
ASKER CERTIFIED SOLUTION
Avatar of ldbkutty
ldbkutty
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
yes, good point. So, the query should be like:
SELECT * FROM yourtablename ORDER BY corresponding_col DESC LIMIT 10;