Sethington
Technical User
I am creating a trigger for my database that will populate 6 tables with an ID. I know how to write the code I just can't seem to figure out how to make it my concise. Can anyone shoten this code for me please. Thanks
Code:
create or replace trigger WELL_ID_TRIGGER
after insert on WELLS
for each row
begin
insert into WELL_MAIN(WELL_ID),
select :new.well_id from dual;
insert into WELL_CONSTRUCTION(WELL_ID),
select :new.well_id from dual;
insert into WELL_GEOLOG(WELL_ID),
select :new.well_id from dual;
insert into WELL_LOCATION27(WELL_ID),
select :new.well_id from dual;
insert into WELL_LOCATION83(WELL_ID),
select :new.well_id from dual;
insert into WELL_ORIG_WATER_LEVEL(WELL_ID),
select :new.well_id from dual;
end;