Subject | Unique index with 2 fields |
---|---|
Author | Ed Dressel |
Post date | 2003-10-30T22:20:45Z |
I am using the following SQL to create a unique index with 2 fields:
CREATE UNIQUE INDEX IDXPERSON_ID ON PAYCHECKINFO (PERSON_ID,
SEQUENCE);
Yet after creating the DB, when I view the unique constraint in IB
Expert I see that only PERSON_ID field is in the unique index.
Note that PERSON_ID is defined
AS INTEGER NOT NULL
and SEQUENCE is defined as
AS SMALLINT NOT NULL CHECK(VALUE IN (1, 2))
What's wrong with my SQL command?
Thanks
Ed Dressel
CREATE UNIQUE INDEX IDXPERSON_ID ON PAYCHECKINFO (PERSON_ID,
SEQUENCE);
Yet after creating the DB, when I view the unique constraint in IB
Expert I see that only PERSON_ID field is in the unique index.
Note that PERSON_ID is defined
AS INTEGER NOT NULL
and SEQUENCE is defined as
AS SMALLINT NOT NULL CHECK(VALUE IN (1, 2))
What's wrong with my SQL command?
Thanks
Ed Dressel