If you do a select on the following views, SYSCAT.INDEXES and in
SYSCAT.TABCONST (those are views on the catalog tables) for that TABNAME,
you'll find rows that DB2 did indeed create a unique index on that table abd
a unique constraint for you.
Their names, as well as the constraint name will be like:
SYSIBM.SQLYYMMDDHHMMSSmmm where mmm is the millisecond.
HTH, Pierre.
--
Pierre Saint-Jacques
SES Consultants Inc.
514-737-4515
"shsandeep" <sandeeprshah@gmail.com> a écrit dans le message de news:
9afd0b2dc96969b5cce3e59831322b32@loc...tdatabases.com...[color=blue]
>I have added primary key to my table using the 'ALTER TABLE' statement.
> Now, is it mandatory for me to use the 'CREATE UNIQUE INDEX' on primary
> key columns in order to enforce the primary key constraint?
> I have a vague idea that unique indexes are automatically created when we
> specify the primary key constraint.
> Can somebody please confirm this?
>
> Cheers,
> San.
>
>[/color]