Advertisement
Guest User

Untitled

a guest
Jul 25th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. SELECT * FROM table ORDER BY Name=0,-Name DESC, Name
  2.  
  3. SELECT t
  4. FROM table t
  5. ORDER BY t.name+0 ASC, t.name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement