티스토리 뷰



  • 데이타를 업데이트한 경우
  • 데이타를 삭제한 경우


이럴 때 이전 내용이 필요 하다면
as of timestamp 를 이용한다.



select * from tbl_dsm_301
as of timestamp(systimestamp-interval '30' minute) -- 30분 이전 데이터를 보여준다.
where rcp_no ='20101207000243'



select * from tbl_dsm_301
as of timestamp(systimestamp-interval '5' hour) -- 5시간 이전 데이터를 보여준다.
where rcp_no ='20101207000243'

댓글