2011年12月24日

DROP TABLE ** CASCADE CONSTRAINTS PURGE

摘要: 1、关于 cascade constraints假设A为主表(既含有某一主键的表),B为从表(即引用了A的主键作为外键)。则当删除A表时,如不特殊说明,则 drop table A 系统会出现错误警告的讯息而不会允许执行。此时必须用,drop table A cascade constraints;SQL> select CONSTRAINT_NAME,TABLE_NAME from dba_constraints where owner = 'SYS' and TABLE_NAME = 'B' no rows selected 我们可以发现利用Drop 阅读全文

posted @ 2011-12-24 00:38 罗烨鑫 阅读(15073) 评论(0) 推荐(0) 编辑

导航