Blog Stats
  • Posts - 13
  • Articles - 1
  • Comments - 24
  • Trackbacks - 0

 

SQL Specific Order By

order by

(case

      when id = 5 then 1

      when id = 2 then 2

      when id = 3 then 3

      when id = 1 then 4

      when id = 4 then 5

end) asc


Feedback

No comments posted yet.


Post A Comment
Title:
Name:
Email:
Comment:
Verification:
 
 

 

 

Copyright © BenAdler