Hi All,
I am trying to alter table to add one primary key and one foreign key in a table. However when I am running the alter table query, I always get four values, two primary keys and two foreign keys. Below is the query I am running:
alter table INFO add constraint pk primary key(ID_NUMBER) add constraint fk foreign key(REV_NUMBER) references REVIEW_INFO
which gives the resultset as below:
CONSTNAME TYPE COLNAME
FK F REV_NUMBER
PK P REV_NUMBER
FK F ID_NUMBER
PK P ID_NUMBER
I am running SYSCAT.TABCONST to find the constraint details.
Please help me out to find out the problem where query is going wrong.