hi ,
I've a WebSphere server and connect to DB2 using passw.
DOC table structure:
CREATE TABLE DB1.DOC
(DOC_ID BIGINT NOT NULL )
DATA CAPTURE NONE
IN USERSPACE1;
ALTER TABLE DB1.DOC
LOCKSIZE ROW
APPEND OFF
NOT VOLATILE;
ALTER TABLE DB1.DOC
ADD CONSTRAINT PK_DOC PRIMARY KEY
(DOC_ID);
in java code i call insert into DB1.DOC(doc_template_id) values (23);
Here is an exception message:
Exception data: javax.ejb.EJBException: DB2 SQL error: SQLCODE: -204, SQLSTATE: 42704, SQLERRMC: DB1.DOC
and as i know => SQLSTATE 42704: An undefined object or constraint name was detected.
Help needed, thx!