Guest_imported
New member
- Jan 1, 1970
- 0
Hallo All!
I tried to create a trigger as following:
CREATE TRIGGER "SHC"."R003AULIDAUS_INSERT" AFTER UPDATE OF "STAT" ON "T082AULI"
REFERENCING OLD AS <>8 NEW AS 8
FOR EACH ROW WHEN (T087POLI.STAT=8) BEGIN
IF UPDATING THEN
INSERT INTO R003AULIDAUS
(MANR, AINR, LAUF, STAT)
VALUES
T087POLI.MANR, :T087POLI.AINR, :T087POLI.LAUF, 1)
END IF;
END;
I know that referencing line is incorrect but idunno what to write in it?
If i leave it out, I get:
ORA-04076: ungültige Angabe für NEW oder OLD
i.e. invalid statement for NEW or OLD
if i leave it in, i get:
ORA-04074: invalid REFERENCING-Name
pls someone help me, its urgent
thx in advance,
Homer
I tried to create a trigger as following:
CREATE TRIGGER "SHC"."R003AULIDAUS_INSERT" AFTER UPDATE OF "STAT" ON "T082AULI"
REFERENCING OLD AS <>8 NEW AS 8
FOR EACH ROW WHEN (T087POLI.STAT=8) BEGIN
IF UPDATING THEN
INSERT INTO R003AULIDAUS
(MANR, AINR, LAUF, STAT)
VALUES
T087POLI.MANR, :T087POLI.AINR, :T087POLI.LAUF, 1)
END IF;
END;
I know that referencing line is incorrect but idunno what to write in it?
If i leave it out, I get:
ORA-04076: ungültige Angabe für NEW oder OLD
i.e. invalid statement for NEW or OLD
if i leave it in, i get:
ORA-04074: invalid REFERENCING-Name
pls someone help me, its urgent
thx in advance,
Homer