Hi,
I have a problem with deffering constraints with db2. It was explained
five year ago at this same group
(http://groups.google.pl/groups?hl=pl...m%26rnum%3D4):
"I have DB2 v 6.1, fixpak 3 and following problem:
On Oracle I can create foreign key constraints DEFERRABLE
INITIALLY
DEFERRED or I can SET CONSTRAINTS ALL DEFERRED
On informix I can SET CONSTRAINTS ALL DEFERRED too.
In both cases, when transaction commits, all the constraints will
be
checked.
Can I do this on DB2?
I've tried SET INTEGRITY FOR table OFF, but this will set table
in the
check pending state, and I cannot SELCT or UPDATE the table.
SET INTEGRITY FOR table FOREIGN KEY IMMEDIATE UNCHECKED
should defer integrity checking, but it doesn't seem to work. The
constraint is still checked.
Even if it would work, do I have to SET INTEGRITY FOR table
IMMEDIATE
CHECKED explicitly before transaction commit?"
Mr Serge Rielau (sr*****@ca.ibm.com) wrote anwer:
"DB2 currently doesn't support this feature." ;)
My question is: if DB2 v.8.2. still doesn't support this feature?
Regards,
Mark.