mysql分页排序带参数

http://www.dewen.io/q/4248 select empid,deptid,rank from ( select c.empid,c.deptid, if(@pdept=c.deptid,@rank:=@rank+1,@rank:=1) as rank, @pdept:=c.deptid from (  select catid AS empid,siteid as deptid
相关文章
相关标签/搜索