Guest User

Untitled

a guest
May 23rd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. abc
  2. 1
  3. 2
  4. null
  5. 100
  6. 6
  7.  
  8. 1
  9. 2
  10. 6
  11. 100
  12. abc
  13. null
  14.  
  15. select * from test_table where status=1 order by test_column DESC
  16.  
  17. select * from test_table where status=1 order by if((test_column = '' OR test_column IS NULL),'999999',test_column) DESC
Add Comment
Please, Sign In to add comment