De:http://markmal.blogspot.com /2006/04/oráculo-como-rownum-en-mysql.html
SELECT @rownum:[email protected]+1 rownum, t.*FROM (SELECT @rownum:=0) r, mytable t;
De:http://markmal.blogspot.com /2006/04/oráculo-como-rownum-en-mysql.html
SELECT @rownum:[email protected]+1 rownum, t.*FROM (SELECT @rownum:=0) r, mytable t;