row_number()over() 和 rank()over()的區別

select employee.*,row_number()over(partition by deptid order by salary desc) rank  from employee;   select employee.*,rank()over(partition by deptid order by salary desc) rank  from employee;  
相關文章
相關標籤/搜索