MySQL Forums
Forum List  »  Newbie

Re: problems with proper ordering
Posted by: Roland Bouman
Date: July 10, 2005 03:58PM

Hi,

you should add a ORDER BY [col] DESC clause to the SELECT expression:

SELECT *
FROM table
ORDER BY dateorder DESC

By the way, you write:

"...included the date-time that isnt displayed on the page so that each post would have a unique non-zero incremented identifier..."

if its important for it to be unique, then don't use datetime, timestamp, etc. Just use AUTO_INCREMENT (see mysql manual for CREATE TABLE)

Options: ReplyQuote


Subject
Written By
Posted
Re: problems with proper ordering
July 10, 2005 03:58PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.