If there is a ParentTable table1 and child-table table2 and I want to make sure either both get created (in proper order!) or none get created, is this the correct syntax?
begin
insert into table1 values (seq.nextvalue, 'test') ;
insert into table2 values (seq.currvalue, 'test3');
commit;
end;
INSERT INTO t1 SELECT a, b FROM dualORINSERT INTO t1 VALUES (a, b)Your code kinda slips between the two :)INSERT INTO T1 (FIELDNAME_1, FIELDNAME_2) VALUES (seq.NEXTVALUE, 'test'). I like to offer the database the fewest number of chances possible to fold, spindle, mutilate, or misinterpret what I meant.