Query deleted row throught flashback

-- Una vez que 'flashback esta activado, eliminamos algunos regustros de la tabla DELETE FROM <TABLA> WHERE ID > 10 -- Por ejemplo -- Ahora, mediante flashback consultamos los registros que habia en dicha tabla hace una hora MENOS los que hay ahora SELECT * FROM TABLA AS OF TIMESTAMP(SYSTIMESTAMP - INTERVAL '60' MINUTE) MINUS SELECT * FROM TABLA; -- Ahora insertamos esos datos en la tabla para poder recuperar los eliminados INSERT INTO TABLA(SELECT * FROM TABLA AS OF TIMESTAMP(SYSTIMESTAMP - INTERVAL '60' MINUTE) MINUS SELECT * FROM TABLA);

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.