mysql显示行号

select @rowNo:=@rowNo+1 as RowNo, a.* from table a , (select @rowNo:=0) b

posted @ 2017-04-13 14:49  逸风净天  阅读(2335)  评论(0编辑  收藏  举报