如何在表中的唯一/主键被外部关键字引用的情况下drop表
2011-04-11 17:34
281 查看
SQL> create table t (t1 int primary key); Table created. SQL> create table t1 (t1 int,t2 varchar2(20)); Table created. SQL> alter table t1 add constraint frg_t1 foreign key (t1) references t; Table altered. SQL> drop table t; drop table t * ERROR at line 1: ORA-02449: unique/primary keys in table referenced by foreign keys SQL> drop table t cascade constraints; Table dropped. |
相关文章推荐
- ORA-02266: 表中的唯一/主键被启用的外部关键字引用
- truncate报ORA-02266错“唯一/主键被启用的外部关键字引用”解决方法
- SSIS如何引用外部DLL
- 在C#项目中不显示Web引用的情况下如何添加“Web引用”?
- 开源PLM软件Aras详解七 在Aras的Method中如何引用外部DLL
- insert到主键或唯一约束表的阻塞情况测试
- 用DllImport引用的外部DLL文件如何通过clickonce发布
- oracle 建立外键 此列列表的唯一关键字或主键不匹配
- 关于c#中双主键表数据如何绑定到DataTable的方法(针对于dataset.xsd的特殊情况)
- 外部引用出错的情况
- ORA-02266: 表中的唯一/主键被启用的外键引用
- 如何压力测试一个唯一主键函数是否真的不会生成重复主键得方法
- 有关extern关键字/引用外部文件的变量问题
- 如何删除通过主键和唯一约束创建的索引
- js文件如何引用外部js
- 如何在不引用头文件的情况下调用category里面的方法
- Spring引用外部文件生成主键配置
- C# 如何引用外部(未嵌入到项目project)的图片或资源
- ORA-02266: 表中的唯一/主键被启用的外键引用
- 关于c#中双主键表数据如何绑定到DataTable的方法(针对于dataset.xsd的特殊情况)