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

项目启动报错:

Caused by: com.ibatis.common.jdbc.exception.NestedSQLException:   
--- The error occurred in sql/sql_audit_data.xml.  
--- The error occurred while applying a parameter map.  
--- Check the getAuditDataList-InlineParameterMap.  
--- Check the statement (query failed).  
--- Cause: java.sql.SQLSyntaxErrorException: ORA-01747: user.table.column, table.column 或列说明无效

报错原因:因为表的列名称使用了Oracle声明的关键字
通过select * from v$reserved_words ORDER BY KEYWORD ASC查看oracle关键字

查看后发现表中有字段名称和oracle重复,修改字段名后问题解决

猜你喜欢

转载自blog.csdn.net/noob9527/article/details/96001326