MySQL Forums
Forum List  »  General

Re: date_format sorting not working
Posted by: KimSeong Loh
Date: January 19, 2005 06:48PM

date_format() will returns a string, if you sort on this you will get a sorted order based on the string itself, not on the original date value, you should ORDER BY ItemDate if you want to sort by the date value.

Options: ReplyQuote


Subject
Written By
Posted
January 19, 2005 05:52AM
Re: date_format sorting not working
January 19, 2005 06:48PM


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.