Do that ,

 SELECT field_name FROM meta WHERE id ='13'
Union
 SELECT field_name FROM meta WHERE id ='11'
Union
 SELECT field_name FROM meta WHERE id ='7'
Union
 SELECT field_name FROM meta WHERE id ='8'
Union
 SELECT field_name FROM meta WHERE id ='9'
Union
 SELECT field_name FROM meta WHERE id ='10'
Union
 SELECT field_name FROM meta WHERE id ='12'

Mathias

Best Regards
--------------------
Mathias FATENE
 
Hope that helps
*This not an official mysql support answer
 


-----Original Message-----
From: Adrian [mailto:[EMAIL PROTECTED] 
Sent: lundi 25 avril 2005 10:06
To: mysql@lists.mysql.com
Subject: Ordering rows whit a select from where in ( exp ) 


 

Hi everyone, 

 

 

         Here is my issue:   

 

         I have this Query  :     SELECT field_name FROM meta WHERE id
IN
('13','11','7','8','9','10','12')

 

         I want the rows to be display in the same order as the in list
of ids.Any ideas? Should I use order by? Whit witch option ? 

 

  

  Thanks for your help.

 

  Adrian.  

 



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to