好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

查找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数据库表中是否存在系统关键字的方法的详细内容...

  阅读:22次