First, thank you for your reply.Well, I mean I want to change the one PK table into a two-PK table. By the way, I already built an index on the column which has the primary key constraint. Can I still do that?
For example:
create table TEST_T_OLD
(
TEST_ID VARCHAR2(56) not null ,
TEST_NAME VARCHAR2(130),
... ,
TEST_FLAG VARCHAR2(64)
)
alter table TEST_T_OLD
add constraint PK_TEST_ID_T primary key (TEST_ID)
using index ;
-------------Now I want to make a few changes to TEST_T_OLD so that ---it will look like this:
create table TEST_T_NEW
(
TEST_ID VARCHAR2(56) not null ,
TEST_NAME VARCHAR2(130),
... ,
TEST_FLAG VARCHAR2(64) not null
)
alter table TEST_T_NEW
add constraint PK_TEST_ID_T primary key (TEST_ID)
using index ;
alter table TEST_T_NEW
add constraint PK_TEST_FLAG_T primary key (TEST_FLAG).
The problem is that TEST_T_OLD already stored many records before, and I don't know what effect that the above mentioned change will have on them..
Looking forward to your reply. Thank you.