Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL0270 (Reason Code = 1) when creating unique index

Status
Not open for further replies.

nshen

Programmer
May 14, 2002
53
US
While the following statements always run fine on all the 32bit DB2 (V7/V8) installations that we have, it keeps on failing on one DB2 V8 FP4 Server that is installed in 64 bit mode:

CREATE TABLE Test
(P1 INT NOT NULL CONTRAINT TEST_P_1 PRIMARY KEY,
C1 INT NOT NULL,
V1 VARCHAR(100))

CREATE UNIQUE INDEX TEST_U_1 ON TEST (C1)

The error message was SQL0270N Function not supported (Reason code = "1"). SQLSTATE=42997

If I change the CREATE UNIQUE INDEX to CREATE INDEX, then it would be fine. It seems the 64 bit DB2 Server only allows one unique index (whether primary or not) per table.
Has anybody experienced this restriction?

Regards, Nancy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top