Guest User

Untitled

a guest
Oct 15th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.09 KB | None | 0 0
  1. select
  2. @r:=@r+1 as rank, name, votes
  3. from
  4. votes,
  5. (select @r:=0) t
  6. order by votes desc;
Add Comment
Please, Sign In to add comment