MYSQL 的rownum

mysql> SELECT @rownum:=@rownum+1 AS rownum, FLIGHTS.FLTID FROM (SELECT @rownum:=0) r, FLIGHTS limit 10; 

 

posted @ 2018-10-08 16:35  monkeybron  阅读(238)  评论(0编辑  收藏  举报