Previous Topic: -167 - DOMAIN CONSTRAINT nnnnnnnn.mmmmmmmm VIOLATIONNext Topic: -169 - THE REFERENCED COLUMNS DID NOT REFER TO A CANDIDATE KEY


-168 - THE TABLE ALREADY HAS A PRIMARY KEY, ONLY ONE MAY BE DEFINED

Explanation

During a CREATE or ALTER TABLE, you attempted to add a primary key, but one had been defined either earlier in the current statement or at a previous time.

The SQLSTATE that equates to this SQL return code is 42889.

User Response

Modify the statement to define only one primary key per table. You may use CA Datacom Datadictionary to determine what primary key already exists, or you may query the SIT.