tb01 테이블의 user: 현 seq에 대한 전 seq 구하기 위한 쿼리



select    seq

  , lag(seqover client_winodw as pre_seq

from tb01

where user = #{user}

window client_winodw as (partition by seq order by seq)

+ Recent posts