在oracle中有rownum之类的东西表示记录的名次,那么在MySql中怎么获取名次呢?select user_id,@rank:=@rank+1 as rank from t_nouser_static_prototype p,(SELECT @rank:=0) B 获取的rank就是名次了user_id rank134762 122139 222140 322141 4