我试图使用查询从行返回计数,以便行的日期与表中该列的最大日期相匹配。下面的语法似乎是正确的(对我来说),它编译和运行。但是,它不只是返回最大值的计数,而是或多或少地返回几个计数,就像"HAIVNG“子句不存在一样。Select ourDate, Count(1) as OUR_COUNT
from schema1.ta
我最后一次尝试是:
final Queryorg.hibernate.hql.ast.QuerySyntaxException: unexpected token: from near line 1, column 73 [delete eu.unicorn.ctds.entity.Foo l wherel.id < (max(