Hello !
I'm working on DB2 v8 on z/OS.
Here is my pbl.
I have th following tables :
- table
TAB1
. col1 CHAR(6) NOT NULL
. col2 CHAR(1) NOT NULL
PK : col1, col2
- table
TAB2
. colY CHAR(6)
. colZ CHAR(1)
FK : ColY, ColZ to table TAB1
NOTES : the column TAB1.col2 can support 3 values Blank, A and P.
NULL is not allowed because of the primary Key.
When I insert a record into table F like this :
INSERT INTO
TAB2
(colY,
colZ)
VALUES
('BLABLA',
NULL);
The FK doesn't check an error whereas I don't have any record in table TAB1 with a NULL in the column col2!!
Any idea ???
Thanks !!