
April 15th, 2012, 02:24 PM
|
|
Registered User
|
|
Join Date: Apr 2012
Posts: 2
Time spent in forums: 1 h 48 m 40 sec
Reputation Power: 0
|
|
|
Trigger help - IF UPDATING THEN
I've created a trigger named customer_archive_tr on the customer table. The trigger saves the current values of all columns of the customer table to the customer_history table before the record is updated or deleted.
(Here is where I get confused...)
If the customer table is being updated, my trigger should also populate 'customer.last_update_date' using SYSDATE and 'customer.last_updated_by' with USER.
|