Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sort decreasing by id?

Status
Not open for further replies.

tranquillo

Technical User
Jan 6, 2003
22
SE
hi..

I want to list some data from a mysql database and I want it to start with the latest entry.. the "id" is auto increasing so I thought it would be easy to just sort it decreasing by "id"... but I don't understand how I do this... I just need a simple sql query.

select decreasing * from whatever sort by whatever.id;
select * from whatever sort decreasing by id;

well... I don't get it...

-stefan
 
that was quick.. thanks ;) desc like descending... should have known...

thanks again.

-stefan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top