DB2: Can not delete rows from empty table after it was referenced in foreign key -
there empty table called address.
i perform delete address , ok.
there empty called addressmapping.
now add foreign key constraint addressmapping references address.
alter table addressmapping add constraint fk_addressmapping_adress_id foreign key (address_id) references address when perform delete address following error occurs:
[55019][-7008] [sql7008] address in my_schema not valid operation
both mentioned tables still empty. if remove constraint delete statement terminates again properly.
why error occur? , how can fix it?
described problem occurs because tables not journaled. adding journaling tables should solve problem.
Comments
Post a Comment