今天在工程中遇到“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可以忽略