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;
The thing that I was really intrested in was if this code could be done
simpler. I gess that is as simple as it gets so thanks for your reply.