SELECT A.*,@rank:=@rank+1 AS pm FROM ( SELECT cptype FROM cp_base ORDER BY cptype DESC ) A ,(SELECT @rank:=0) B 相关文章: