调用oracle 各种报错总结---待续
2015-05-07 17:55
302 查看
1、ORA-01747: user.table.column, table.column 或列说明无效
原因之一是sql语句拼接错误,多了逗点;二是使用到了oracle的关键字所致
2、ORA-02449: unique/primary keys in table referenced by foreign keys
查看官方文档:
ORA-02449: unique/primary keys in table referenced by foreign keys
Cause: An attempt was made to drop a table with unique or primary keys referenced by foreign keys in another table.
Action: Before performing the above operations the table, drop the foreign key constraints in other tables. You can see what constraints are referencing a table by issuing the following command: SELECT * FROM USER_CONSTRAINTS WHERE TABLE_NAME = "tabnam";
我是在drop表时报的这个错,所以在drop语句后加上 cascade constraints;就执行通过了
原因之一是sql语句拼接错误,多了逗点;二是使用到了oracle的关键字所致
2、ORA-02449: unique/primary keys in table referenced by foreign keys
查看官方文档:
ORA-02449: unique/primary keys in table referenced by foreign keys
Cause: An attempt was made to drop a table with unique or primary keys referenced by foreign keys in another table.
Action: Before performing the above operations the table, drop the foreign key constraints in other tables. You can see what constraints are referencing a table by issuing the following command: SELECT * FROM USER_CONSTRAINTS WHERE TABLE_NAME = "tabnam";
我是在drop表时报的这个错,所以在drop语句后加上 cascade constraints;就执行通过了
相关文章推荐
- java 调用webservice的各种方法总结
- 各种类和视图之间相互调用的总结
- Java 调用webservice的各种方法总结
- java 调用webservice的各种方法总结
- java 调用webservice的各种方法总结
- java 调用webservice的各种方法总结
- 各种 django 静态文件的配置总结【待续】
- oracle中各种索引的总结
- Sql2012如何将远程服务器数据库及表、表结构、表数据导入本地数据库 自定义日志记录功能,按日记录,很方便 C#常量和字段以及各种方法的语法总结 类型,对象,线程栈,托管堆在运行时的关系,以及clr如何调用静态方法,实例方法,和虚方法 asp.net webapi 自定义身份验证
- Windows平台cx_Oracle各种连接不上Oracle服务端的问题总结
- (转)java 调用webservice的各种方法总结
- oracle各种常用管理sql及其他 ---待续
- DWR_各种方法调用、配置总结
- oracle的各种name(总结自warehouse)
- java 调用webservice的各种方法总结
- 隐式意图调用系统自带组件的各种Uri总结
- 各种dialog,alertdialog,AlertDialog.Builder(this)的总结,并封住成javaScript调用
- java 调用webservice的各种方法总结
- java 调用webservice的各种方法总结
- 调用栈和各种调用约定的总结对比