标签:
SELECT @rowno:=@rowno + 1 AS rowno,a.* FROM tableName a,(SELECT @rowno:=0) b
一句话实现Mysql查询结果带行号
原文地址:http://www.cnblogs.com/yudis/p/5655499.html