I am trying to select rank in sql, the selection query working fine how to convert this selection into update and update the columns as well.
SET @i=0 ;
SELECT sno, email, points, @i:=@i+1 AS rank FROM user ORDER BY points DESC
how to update this selection in table as well
Got the query from here