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