alter table test drop constraint test_FK;

解决方案 »

  1.   

    alter table test disable constraint test_FK;
      

  2.   

    To :BlueskyWide(谈趣者) : 不是删除
    当禁止外键后, 数据不能增/删/改 了, 并且在恢复时报告缺少关键字, 为何?
      

  3.   

    Plus:
    ALTER TABLE test DISABLE UNIQUE (c1,c2) CASCADE;if the unique key of test table is referenced by the foreign key in the child table , you must use cascade clause to disable the unique key . This clause disables the foreign key as well.