mysql中添加序号可以使用伪列
SET @rownum:=0; SELECT @rownum:=@rownum+1 AS rownum FROM t_user;
posted on 2017-05-10 13:33 一条小江鱼 阅读(1169) 评论(0) 收藏 举报