Hi, I am not sure whether this is the right fourm to post this type question. please excuse me.
while runnig this sql on db2control center i am getting
sqlcode : -104
sqlstate : 42601
how to set the casecade delete and update on sinle command
CREATE TABLE TEST_CD (
ORDER_DATE TIMESTAMP NOT NULL,
ORDER_ID VARCHAR(16) NOT NULL ,
STORE_ID INT NOT NULL,
CUSTOMER_ID INT NOT NULL,
SHIP_METHOD VARCHAR(8) NOT NULL,
TOTAL_ORDER_AMOUNT NUMERIC(7,2) NOT NULL,
CONSTRAINT pk_ocd PRIMARY KEY (STORE_ID, ORDER_ID),
CONSTRAINT fk_wlcocd FOREIGN KEY (CUSTOMER_ID) REFERENCES DB2ADMIN.C_CD (CUSTOMER_ID) ON DELETE CASCADE ON UPDATE CASCADE );
Thanks
Santosh