📌  相关文章
📜  如何在“JPQL”中获取具有相同 id 的列的总和? - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:07.339000             🧑  作者: Mango

代码示例1
public interface CodeRepository extends JpaRepository {
    @Query("select c.code, c.name, count(l) as amount from Code c join c.counterList l group by c.code, c.name")
    List getSummary();
}