您的位置:首页 > 数据库 > Oracle

调用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;就执行通过了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: