摘要: 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 @ 2012-07-12 13:59 JJ.Net 阅读(192) 评论(0) 推荐(0)