【发布时间】:2019-08-21 04:01:20
【问题描述】:
我有一个这样的查询:
SELECT ap.person_id FROM
(SELECT distinct ac.person_id person_id,ac.user_id
FROM zrm_actor ac WHERE ac.deleted != 1) ap
WHERE person_id IS NOT NULL
GROUP BY person_id HAVING COUNT(*) > 1;
如何使用条件编写此查询?
【问题讨论】:
标签: sql hibernate criteria hibernate-criteria detachedcriteria