查找oracle数据库表中是否存在系统关键字的方法

今天在工程中遇到“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='用户名大写'
);

ID可以忽略


数据运维技术 » 查找oracle数据库表中是否存在系统关键字的方法