select * from (select id,name,score,ipone,time,(@i:=@i+1) as i from `user`,(select (@i:=0)) b order by score desc time asc) c where ipone=%d; ",array($where['ipone']));
select (@i:=@i+1) as i,user. * from user,((select @i:=0) as it) ORDER BY score DESC , time asc
//防止mysql乱码set names utf8
mysql 排序之后添加 序列号 以及查询
最新推荐文章于 2024-05-20 18:36:43 发布