Hi Chris,
what you can do is:
SELECT [fields]
FROM [table]
 WHERE id IN (id1,id2,id3...)
ORDER BY FIELD([field],value1,value2,value3,...)

/Johan

Chris Sansom skrev:
Yes, I have looked at the docs and can't find what I'm looking for.

I'm doing a very simple query:

SELECT [fields]
FROM [table]
WHERE id IN (id1,id2,id3...)

Is there a way to return the results in the order they appear in the IN list?

I'm sure there's something obvious and simple, but as a relative novice... you know how it is. :-)


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

Reply via email to