mysql显示行号

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

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