Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 -
Prod
PL/SQL Release 10.1.0.2.0 - Production
CORE 10.1.0.2.0 Production
TNS for 32-bit Windows: Version 10.1.0.2.0 - Production
NLSRTL Version 10.1.0.2.0 - Production
테이블 다음과 같이 작업을 해서 primary key 가 있습니다.
create table test
(a varchar2(1)
,b varchar2(2)
,c varchar2(4)
,d varchar2(5)
)
alter table test
add constrraint pk_test primary key (a,b) using index tablespace
ts_test_idx;
primary key 에 c 칼럼을 추가 하고자
alter table test
drop constraint pk_test;
삭제 되었다는 메세지를 확인
alter table test
add constraint pk_test primary key(a,b,c) using index tablespace
ts_test_idx;
위와 같이 작업을 수행을 해보니
이미 사용된 객체명이라는 메세지가 뜹니다.
제가 미처 생각하지 못하는 부분이 있는지 아시분 답변
부탁드립니다.
toad에 작업을 수행했습니다.
|