标签:http ar sp for strong div on bs ad
http://hi.baidu.com/rebooo/item/12b500b130022bf263388e69假设A为主表(既含有某一主键的表),B为从表(即引用了A的主键作为外键)。则当删除A表时,如不特殊说明,则 drop table A 系统会出现如下错误警告的信息而不会允许执行。
ERROR at line 1: ORA-02449: unique/primary keys in table referenced by foreign keys
此时必须用,drop table A cascade constraints;
之后,再查询约束:
SQL> select CONSTRAINT_NAME,TABLE_NAME from dba_constraints where owner = ‘SYS‘ and TABLE_NAME = ‘B‘ ;
no rows selected
Oracle 在Drop表时的Cascade Constraints
标签:http ar sp for strong div on bs ad
原文地址:http://www.cnblogs.com/svennee/p/4083328.html