差出人: 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;
差出人: 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;