We get error when we insert record into the table with foreign key on column «KEY»:
create table t1
("KEY" integer not null primary key);
create table t1_1
("VERSION" integer not null primary key,
"KEY" integer not null,
constraint C_FK1 foreign key("KEY") references WITH CHECK OPTION t1("KEY")
);
insert into t1("KEY") values (1);
insert into t1_1("VERSION","KEY") values (1,1);
↧