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
相关文章
相关标签/搜索