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.
我想获得相同的总行数
select count( ) from (select count( ) from tableA group by column1)
我在网上搜索我的问题,但没有找到解决方案
使用投影:
criteria.setProjection(Projections.rowCount()).uniqueResult();