order by question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • motorpsychkill

    #1

    order by question

    SELECT * FROM kf_gallery WHERE gallery_id IN ( 3, 1, 2 ) ORDER BY ?

    What I'm trying to do is get the results in the order specified in the "IN"
    clause, i.e. (3, 2, 1). Is this possible? (I'm having trouble searching
    the mail archives). Thanks!

    -m


    --
    MySQL General Mailing List
    For list archives: http://lists.mysql.com/mysql
    To unsubscribe: http://lists.mysql.com/mysql?unsub=m...ie.nctu.edu.tw

Working...