MySQL 下面没有RowNum,排序后序号却无法得到,比较麻烦!
SELECT @rownum:=@rownum+1 rownum, CollectSn From(SELECT @rownum:=0,bbgmain.* FROM qbdb.bbgmain WHERE collectsn!='' ORDER BY collectsn limit 10) t