plsql - Oracle PL/SQL Trigger to only run if changes made to data after 9-5 hours -


I have created a basic audit table so that if there is any change in the 'Employee' table, Do, delete, time, user and what is the action stored in an 'audit employee' table.

I just thought that it was possible to trigger the trigger only if the fire happened

thanks

thanks

Thanks

You can not control whether the time of day Will trigger the trigger on or not? However, you can add logic to the trigger so that you enter data in the history table only for a few hours. If employee = history (IN_char (sysdate, 'hh24'))> = 17 or to_number (to_char (sysdate, 'hh24')) and lt 7) something like

  .. if end;    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -