来自:http://markmal.blogspot.com/2006/04/oracle-like-rownum-in-mysql.html
SELECT @rownum:=@rownum+1 rownum, t.*FROM (SELECT @rownum:=0) r, mytable t;