Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有任何解决方法可以在 JPQL 中进行多列不同计数?
JPQL 似乎只支持查询中的单个表达式计数,并且由于子查询不能在 from 部分中使用,因此不可能像这样表达它
select count(*) from (select distinct a, b, c from Entity e)