【发布时间】:2014-07-27 05:45:16
【问题描述】:
我有一个查询,我想使用 hibernate 本机 sqlQuery 运行它
当我使用 sql developer 运行查询时,它工作正常,但是当休眠运行它时,它会抛出此异常
.
.
.
Caused by: org.hibernate.exception.SQLGrammarException: could not extract ResultSet
at org.hibernate.exception.internal.SQLExceptionTypeDelegate.convert(SQLExceptionTypeDelegate.java:82)
.
.
.
Caused by: java.sql.SQLSyntaxErrorException: ORA-00911: invalid character
这是我的 sql 查询:
SELECT car_id,car.plate FROM car WHERE car.plate LIKE '%12%' ORDER BY CAR.CAR_ID;
请帮帮我,
提前致谢
【问题讨论】: