一 语法
@H_502_4@
DISABLE|ENABLE CONSTRAINT constraint_name
二 代码
@H_502_4@
sql>select constraint_name,constraint_type,status from user_constraints
2where table_name ='USERINFO_U2';
CONSTRAINT_NAME C STATUS
---------------------------------------
SYS_C0011117 P ENABLED
UN_USERNAME_NEW U ENABLED
sql> alter table userinfo_u2
2 disable constraint UN_USERNAME_NEW;
表已更改。
sql" style="font-family: Consolas,status from user_constraints
2where table_name ='USERINFO_U2';
CONSTRAINT_NAME C STATUS
---------------------------------------
SYS_C0011117 P ENABLED
UN_USERNAME_NEW U DISABLED