Summary_Oracle lag()/lead() over()分析函數

--lead函數是按id倒序排序把下一行的age記錄顯示在當前行的列lag,爲null顯示null with tmp as(         select '1' id ,'aa' name ,'22' age from dual union all         select '2' id ,'bb' name ,'20' age from dual union all         sel
相關文章
相關標籤/搜索