【发布时间】:2010-04-26 15:08:54
【问题描述】:
Hibernate 标准使用 DB2 方言生成以下 SQL
IN 子句中的复合键,但 DB2 回答查询不正确:
select * from tableA where (x, y) IN ( ( 'x1', y1) )
但是,DB2 抛出了这个:
SQL0104N An unexpected token "," was found following ", y) in (
('x1'". Expected tokens may include: "+". SQLSTATE=42601
【问题讨论】:
-
critera 调用看起来如何,可能是错误存在?