Below SQL statement works fine on DB2 LUW 9.7 but fails to run on DB2 for z/OS 9.1, why and how to make it work?
CREATE TABLE HIERARCHY_TEST (
HIER_URI VARCHAR(255) NOT NULL,
PARENT_URI VARCHAR(255),
TITLE VARCHAR(1000) NOT NULL,
MIMETYPE VARCHAR(100),
DESCRIPTION VARCHAR(1000),
MODIFIED_BY VARCHAR(1000),
CONSTRAINT PK_SFIND_HIERARCHY PRIMARY KEY (HIER_URI ),
CONSTRAINT FK_ND_HIERARCHY_1 FOREIGN KEY (PARENT_URI) REFERENCES HIERARCHY_TEST ( HIER_URI)
)
The error message I got is "DEV.FIND_HIERARCHY_TEST IS AN UNDEFINED NAME. SQLCODE=-204, SQLSTATE=42704, DRIVER=3.53.71"
Thanks.
ALTER TABLE
to add the constraint afterwards? – El Yobo