今天在工程中遇到“ORA-01747: user.table.column, table.column 或列说明无效”的报错情况,查了一下是由于数据库列名起的不好引起的,名字用到了数据库的关键字。
如果列很多,又不好确定是哪个列名使用了关键字,以下建议可供参考:
我用以下方法定位
select *
from v$reserved_words
where keyword
in(
select COLUMN_NAME
from all_tab_columns
where table_name = '表名大写' and owner='用户名大写'
);
我的数据库是Oracle.
相关阅读:
ORA-01172、ORA-01151错误处理 http://www.linuxidc.com/Linux/2013-06/86529.htm
ORA-00600 [2662]错误解决 http://www.linuxidc.com/Linux/2013-06/86528.htm
ORA-01078 和 LRM-00109 报错解决方法 http://www.linuxidc.com/Linux/2012-07/66044.htm
ORA-00471 处理方法笔记 http://www.linuxidc.com/Linux/2013-09/90017.htm
ORA-00314,redolog 损坏,或丢失处理方法 http://www.linuxidc.com/Linux/2013-09/90646.htm
ORA-00257 归档日志过大导致无法存储的解决办法 http://www.linuxidc.com/Linux/2013-09/90594.htm
更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12
