select @x:=ifnull(@x,0)+1 as rownum,person_id from t_base_person

 

相关文章: