MySQL Forums
Forum List  »  InnoDB

Re: Sort (ORDER BY) by a comma-separated list of related fields using MySQL 4.1?
Posted by: Phil Powell
Date: March 03, 2006 05:20PM

The second query is undoable because it's tailored via PHP in a semi-static kind of way, but the first one I can do, and have done..

The results are really weird. It sorts but it doesn't "sort all the way", if that makes sense.. you'll have an order like this:

african-americans
african-americans
african-americans,hispanics
african-americans
asian-americans
asian-americans,african-americans
asian-americans

Phil

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Sort (ORDER BY) by a comma-separated list of related fields using MySQL 4.1?
2056
March 03, 2006 05:20PM


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.