-
mysql怎么实现统计功能
select * from (select id,num,rank from (select heyf_tmp.id,heyf_tmp.num,@rownum:=@rownum+1 ,if(@pdept=heyf_tmp.id,@rank:
select * from (select id,num,rank from (select heyf_tmp.id,heyf_tmp.num,@rownum:=@rownum+1 ,if(@pdept=heyf_tmp.id,@rank: