Från:http://markmal.blogspot.com /2006/04/oracle-like-rownum-in-mysql.html
SELECT @rownum:[email protected]+1 rownum, t.*FROM (SELECT @rownum:=0) r, mytable t;
Från:http://markmal.blogspot.com /2006/04/oracle-like-rownum-in-mysql.html
SELECT @rownum:[email protected]+1 rownum, t.*FROM (SELECT @rownum:=0) r, mytable t;