Luc*_*uke 7 java jpa java-ee
我在Question实体和Category实体之间有@ManyToMany关系.我想计算每个类别中的问题数量.我该怎么办?
JB *_*zet 9
select count(question.id), category.description from Category category left join category.questions question group by category.description
归档时间:
14 年 前
查看次数:
7002 次
最近记录: