ORA-01747 user.table.column, table.column 或列说明无效

检查sql中是否使用了数据库关键字或者表的列名是否使用了数据库关键字。

  • v$reserved_words:所有关键字。
select * from v$reserved_words;
  • all_tab_columns: 表字段信息。
select * from all_tab_columns;

可以关联上面连个视图查询表中是否使用了数据库关键字。

select 
  *
from 
  v$reserved_words
where
  keyword in (
    select column_name from all_tab_columns where table_name = '表名(注意大写)' and owner = '用户名(注意大写)'
  );
posted @ 2022-04-27 17:15  freepc  阅读(247)  评论(0)    收藏  举报