mysql 排序以後添加 序列號 以及查詢

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. *
相關文章
相關標籤/搜索