SELECT ( @i := @i + 1 ) rownum, ly_qb.lybmhy FROM ly_qb, ( SELECT @i := 0 ) AS a ORDER BY sjss + 0 DESC
排完序之后,给数据加一个排名,
SELECT @i := 0 从0开始
( @i := @i + 1 ) 依次递增
SELECT ( @i := @i + 1 ) rownum, ly_qb.lybmhy FROM ly_qb, ( SELECT @i := 0 ) AS a ORDER BY sjss + 0 DESC
排完序之后,给数据加一个排名,
SELECT @i := 0 从0开始
( @i := @i + 1 ) 依次递增