on 2025 Apr 17 7:59 PM
Hello all,
As far as I understand triggers hold the record about to be inserted/updated as a row variable which I am able to use by referencing its parts. Example:
CREATE TRIGGER TEST_TRIGGER_VAR_UPDATE
AFTER UPDATE ON TARGET
REFERENCING NEW ROW mynewrow, OLD ROW myoldrow
FOR EACH ROW
BEGIN
INSERT INTO SAMPLE_new VALUES(:mynewrow.a, :mynewrow.b);
END;
This is unacceptable for me as I want to create triggers on 50+ tables and I cannot explicitly state all of the collections elements for all these tables.
I need sth like INSERT INTO SAMPLE_new VALUES(:mynewrow.*);
or
INSERT INTO SAMPLE_new SELECT * FROM (:mynewrow);
Thanks
Request clarification before answering.
User | Count |
---|---|
77 | |
22 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.