【发布时间】:2015-01-13 21:39:16
【问题描述】:
我在 $1 或附近收到错误语法错误,还有一些异常 sql 语法异常
"select t1.* from ( select * from employee_additional_attributes where stwid in :stwIdList )"
+ "as t1 join ( select stwid, max(employee_additional_attribute_id) as employee_additional_attribute_id from employee_additional_attributes"
+ "where stwid in :stwIdList and mis_attribute_id in (:attributeId) and start_time <= date(:date) group by stwid )"
+ "as t2 using ( stwid, employee_additional_attribute_id" )
【问题讨论】:
-
能否为您的问题添加例外情况
-
请添加整个例外。
-
引起:org.postgresql.util.PSQLException: 错误:“$1”或附近的语法错误
-
引起:org.hibernate.exception.SQLGrammarException:无法提取结果集
-
@RameshKumar,更新您的问题并添加完整的 java 异常堆栈跟踪
标签: sql hibernate postgresql