MySQL Forums
Forum List  »  InnoDB

Re: Sort (ORDER BY) by a comma-separated list of related fields using MySQL 4.1?
Posted by: Inder Singh
Date: February 22, 2008 02:57AM

table is user and field is nid
contains numaric values.I want to get a sort list based on i have passed in "IN" operator..





select nid from user where nid in(3110,3060,3107)


this results in

3060
3107
3110



but i want in style

3110
3060
3107



both order by ASC and order By DESC are not workiing here
and default is also not fine


problem is i want result in the order i have given in in operator


see anybody if can help me in it .

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Sort (ORDER BY) by a comma-separated list of related fields using MySQL 4.1?
2199
February 22, 2008 02:57AM


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.