Oracle - Lead() over (partition by xxx order by xxx )

Lead() over(),主要做用是從某一個集合的當前cursor位置算起,按照某種順序將第下第n個位置的某一個字段值取出來,默認是往下1個位置。ci select incid_id,acty_id, lead(acty_ts) over(partition by incid_id order by acty_ts asc ) as closed_response from incid_acty
相關文章
相關標籤/搜索