Sort results by order in list


/ Published in: SQL
Save to your folder(s)



Copy this code and paste it in your HTML
  1. SELECT id, start_date FROM iddt
  2. WHERE id IN ('109k7','s3x6','sxmns','wt57')
  3. ORDER BY FIELD(id,'109k7','s3x6','sxmns','wt57')

URL: http://lists.mysql.com/mysql/209784

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.