Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Community
Search
Login
Register
Webmaster's Community
»
Designing and Development
»
Programming
»
How to get last 5 records
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to get last 5 records (Read 11226 times)
rahul
Newbie
Posts: 16
How to get last 5 records
«
on:
September 29, 2012, 11:32:38 AM »
hi ,
i have a table more than 5000 records and i just want to see last n numbers of records from my table is this possible and how to achieve this with sufficient query
Logged
{advert.}
phpdeveloper
Newbie
Posts: 39
Re: How to get last 5 records
«
Reply #1 on:
September 29, 2012, 12:31:26 PM »
This is very easy to get last n numbers of records from data base you can try like this
Code:
[Select]
SELECT columnNames
FROM YourTableName
ORDER BY columnNAme DESC
LIMIT 5
Hope this will help you.
Logged
Print
Pages: [
1
]
« previous
next »
Webmaster's Community
»
Designing and Development
»
Programming
»
How to get last 5 records
X
Do you know?
By participating in our community you can get free top level domain as well learn about Search Engine Optimization, Server management and more..
Join Now!
Copyright ©
Webmaster's Community - IfandBut.com
Privacy Policy
Terms
Advertise
Contact us
Top