on 12-30-2016 11:04 AM
There are several issues in that create trigger statement:
A valid trigger syntax for your example would be:
CREATE TRIGGER trg_count
AFTER UPDATE
ON LOGIN
REFERENCING OLD ROW _old
FOR EACH ROW
BEGIN
-- valid trigger body to be inserted
END;
Maybe the following "before update" trigger logic is helpful as you are trying to increase the value for column "_usr_cnt" for each update:
CREATE TRIGGER trg_count
BEFORE UPDATE
ON LOGIN
REFERENCING NEW ROW _new
FOR EACH ROW
BEGIN
_new._usr_cnt = :_new._usr_cnt + 1;
END;
Regards,
Florian
PS: By the way, I would not create any tables triggers in the SYSTEM schema as part of a good architecture.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.