Posts Tagged ‘主键约束’

主键约束引起ORA-02429错误

drop index时出现如下错误:
SQL> drop index oos_index;
drop index oos_index
*
ERROR at line 1:
ORA-02429: cannot drop index used for enforcement of unique/primary key
我们知道当创建Primary key和unique约束时,如果在该key上不存在索引,则 oracle 会自动创建对应的unique索引,而当你要删除该索引时,必须先Disable或Drop该约束。看下面的例子:

Page 1 of 11

    搜索本站

    站点日历

    7月 2010
    « 4    
     1234
    567891011
    12131415161718
    19202122232425
    262728293031  

    订阅本站

    文章分类

    最新日志

    热点文章

    日志存档

    常用标签