Von: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;
Von: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;