有异常:
aggregate function expected before ( in SELECT [select distinct(t.scheduleId) from ZsSchedule t ,ZsPromulgator z where t.scheduleId = z.linkId and z.promulgate = '1']
不是HQL的 错误吧?
aggregate function expected before ( in SELECT [select distinct(t.scheduleId) from ZsSchedule t ,ZsPromulgator z where t.scheduleId = z.linkId and z.promulgate = '1']
不是HQL的 错误吧?
hql = "select distinct(t.scheduleId),z.caption from ZsSchedule t ,ZsPromulgator z where t.scheduleId = z.linkId and z.promulgate = '1'";这样可以么?
还想问下。我向取2个字段,一个不能重复的。
就像上面那两个。应该怎么写HQL。
还想问下。我想取2个字段,其中有一个是不能重复的。
就像上面那两个,第一个不能重复。应该怎么写HQL。