有时因为业务的需求,我们需要在查询出的数据中加上排序序号,例:
SQL:select a.*, (@i:= @i+1) as rank_no from performance a,(select @i:=