SELECT id FROM (SELECT uid, score, (@rowno:=@rowno+1) as rowno from user, (SELECT (@rowno:=0)) b ORDER BY score DESC) c WHERE rowno=1;
SELECT id FROM (SELECT uid, score, (@rowno:=@rowno+1) as rowno from user, (SELECT (@rowno:=0)) b ORDER BY score DESC) c WHERE rowno=1;
1 评论