I have a table PSLET_INFORMATION with the field PSLET_RECORD_LAST_UPDATED (Date)
I would like to set this field to SYSDATE whenever there is any Update to any record(s) in that table.
So I've tried a trigger:
I get an error PLS-00103:
Encountered the symbol 'end-of-file' when expecting one of the following:
(begin case declare exit for ...)
Any ideas of how this simple trigger should look like?
Have fun.
---- Andy
There is a great need for a sarcasm font.
I would like to set this field to SYSDATE whenever there is any Update to any record(s) in that table.
So I've tried a trigger:
Code:
create trigger PSLET_INFORMATION_T
AFTER UPDATE
ON PSLET_INFORMATION
FOR EACH ROW[highlight]
begin[/highlight]
:new.PSLET_RECORD_LAST_UPDATED := SYSDATE;
end PSLET_INFORMATION_T;
/
I get an error PLS-00103:
Encountered the symbol 'end-of-file' when expecting one of the following:
(begin case declare exit for ...)
Any ideas of how this simple trigger should look like?
Have fun.
---- Andy
There is a great need for a sarcasm font.