본문 바로가기

database/oracle

실수로 삭제한 쿼리 복구

INSERT INTO S_UPDATELOG
   SELECT *
     FROM (SELECT *
             FROM S_UPDATELOG AS OF TIMESTAMP (SYSTIMESTAMP - INTERVAL '60' MINUTE) A
    WHERE     A.STNO = '2009432007'
          AND A.CHANGECODE = '21'
          AND A.CHANGEYEAR = '2012';