mysql 查询结果中增加序号

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

 

posted @ 2017-09-12 16:16  缤纷世界  阅读(1198)  评论(0编辑  收藏  举报