Does anybody have a trigger on certain tables' update and delete actions. the column would contain the Oracle User id, O/S id,time the data changed. Thanks for help.
No problem with update. But with delete, I can not see where do you want the information to be written to! The row will not exist any more, so where would you append your information about the user and the deletion date to? Unless you want to save the row to another archive table before it gets deleted from the actual table?
CREATE OR REPLACE emp_bur_trigger ON scott.emp BEFORE UPDATE FOR EACH ROW
--:NEW.update_user := USER;
--:NEW.update_date := SYSDATE;
ASCII a stupid question, get a stupid ANSI
24 hours in a day .... 24 beer in a case .... coincidence?
Click Here to Expand Forum to Full Width