I am so so desperate of help. It's pretty simple by concept, but I can't seem to get it right.
Okay
2 tables.
Table A -> id, c1, c2, c3
Table B -> id, c1, c2, c3
I want a trigger that will populate c1 from table b when I insert or update the id in table a. So far, I have this:
(what did I do wrong?)
-----
CREATE OR REPLACE TRIGGER v_gcd
after update on editorial
referencing old as pre new as post
for each row
declare "qid" char(250);
begin
select quarantine_id into "qid" from gcd where ost.int_filename = gcd.FILE_NAME;
update editorial
set editorial.quara_type = "qid" where editorial.INT_FILENAME = ost.int_filename;
end v_gcd;
/
Okay
2 tables.
Table A -> id, c1, c2, c3
Table B -> id, c1, c2, c3
I want a trigger that will populate c1 from table b when I insert or update the id in table a. So far, I have this:
(what did I do wrong?)
-----
CREATE OR REPLACE TRIGGER v_gcd
after update on editorial
referencing old as pre new as post
for each row
declare "qid" char(250);
begin
select quarantine_id into "qid" from gcd where ost.int_filename = gcd.FILE_NAME;
update editorial
set editorial.quara_type = "qid" where editorial.INT_FILENAME = ost.int_filename;
end v_gcd;
/