sql - How to get previous data before commit? -



sql - How to get previous data before commit? -

is there way previous values ​​that in specific table before current changes , before commit changes, , without store info in backup table.

maybe way more clear:

stage 1: alter info in table x without commit stage 2: info before stage 1 without store in backup folder stage 3: commit stage 1 changes.

depending on how transaction designed place logic in trigger. triggers have access old , new values. see oracle documentation more info (:old , :new).

create or replace trigger test_trigger before delete or update on test_table each row begin insert backup_table (col1, col2) values (:old.col1, :old.col2); end;

sql oracle

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -