ibatis错误:Cause: java.sql.SQLSyntaxErrorException:ORA-00920: 无效的关系运算符
2013-02-27 18:43
661 查看
Exception in thread "main" com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred in ibatis/resources/User.xml. --- The error occurred while applying a parameter map. --- Check the getAllUsers-InlineParameterMap. --- Check the statement (query failed). --- Cause: java.sql.SQLSyntaxErrorException: ORA-00920: 无效的关系运算符 at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:201) at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryForList(MappedStatement.java:139) at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:578) at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:552) at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:118) at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForList(SqlMapClientImpl.java:94) at ibatis.iBatisDemo.main(iBatisDemo.java:17) Caused by: java.sql.SQLSyntaxErrorException: ORA-00920: 无效的关系运算符 at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:91) at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455) at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413) at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030) at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194) at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:785) at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:860) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186) at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381) at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3482) at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1373) at com.ibatis.sqlmap.engine.execution.DefaultSqlExecutor.executeQuery(DefaultSqlExecutor.java:183) at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.sqlExecuteQuery(MappedStatement.java:221) at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:189) ... 6 more
请检查你的sql配置问题(如User.xml里配置的)
相关文章推荐
- 异常 -- Cause: java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符
- 异常 -- Cause: java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符
- Cause: java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符
- 令人无语的分号引发的“java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符”错误
- java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符 ``` *### SQL: SELECT COUNT(ID) AS VALU
- JAVA 抛出java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符 异常
- MyBatis java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符
- java.sql.SQLSyntaxErrorException: ORA-00904: "column": 标识符无效
- 错误:java.sql.SQLSyntaxErrorException: ORA-02289: sequence does not exist
- java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符
- java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符
- java.sql.SQLSyntaxErrorException: ORA-00904: "**": 标识符无效
- java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符 分号问题
- java.sql.SQLSyntaxErrorException: ORA-01747: user.table.column, table.column 或列说明无效
- 解决bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符
- mybatis报了一个java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符
- ODI-1228: Caused By: java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符
- Oracle ADF 异常:Caused By: java.sql.SQLSyntaxErrorException: ORA-01722: 无效数字
- java.sql.SQLSyntaxErrorException: ORA-01722: 无效数字
- java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符 分号问题