truncate table时发生ORA-02266错误
来源:互联网 发布:软件编程基础知识 编辑:程序博客网 时间:2024/04/29 03:51
今天想truncate一张表,但报ORA-02266错误
想到可能是主键被子表引用,查了一下
解决如下:
SQL> truncate table area;
truncate table area
*
ERROR 位于第 1 行:
ORA-02266: 表中的唯一/主键被启用的外部关键字引用
想到可能是主键被子表引用,查了一下
解决如下:
SQL> truncate table area;
truncate table area
*
ERROR 位于第 1 行:
ORA-02266: 表中的唯一/主键被启用的外部关键字引用
ORA-02266: unique/primary keys in table referenced by enabled foreign keys
SQL> alter table area disable primary key cascade;
表已更改。
SQL> truncate table area;
表已截掉。
SQL> alter table area enable primary key;
表已更改。
表已更改。
SQL> truncate table area;
表已截掉。
SQL> alter table area enable primary key;
表已更改。
- truncate table时发生ORA-02266错误
- truncate table时发生ORA-02266错误
- truncate table 错误 ORA-02266: unique/primary keys in table referenced by enabled foreign keys
- truncate empty table ora-02266, why? cause
- drop table 时发生ORA-00604 ORA-01422 错
- oracle truncate 清空表遇ora-02266错误的解决办法
- truncate table ERROR:ORA-02266 表中的唯一/主键被启用的外键引用
- truncate时报错ORA-02266
- dts数据到oracle时发生ora-24801错误备忘
- EXP时发生ORA-00932错误的解决
- ORA-28502: 混合数据库链接时发生内部通信错误
- imp时发生ora-01659的错误处理
- 解决启动数据库时发生的ORA-12528错误
- Oracle导入数据时发生ORA-01950错误
- TRUNCATE TABLE
- Truncate Table
- Truncate Table
- Truncate table
- apache continuum ci tool 使用说明
- C++之数组与指针的异同
- JAVA 与SOCKET通讯
- C#中DllImport用法和路径问题
- 毕业设计ing
- truncate table时发生ORA-02266错误
- python中的list如何进行相减操作或者将list分片
- XML2010-5-13
- Ubuntu下编译OpenMesh
- SQL Server 2008阻止保存要求重新创建表的更改
- 生活中的规则
- 打印机的大小设置
- SQLServer 和Oracle常用函数对比
- 自己最近测试程序