是否可以使用query.from(subquery)通过JPA QueryBuilder创建查询select DISTINCT substring(min(sel."JOIN store s ON d.store_id = s.idGROUP BY sel.name 请不要试图查看查询中的逻辑 我只想知道如何通过查询构建器创建这样的</em
我的查询如下所示 SELECT FROM
(SELECT ROUND(SUM(cost),2) as cost FROM accounts LEFTJOIN earnings ON earnings.id = accounts.id WHERE earnings.date >= ?GROUP BY earnings.id) src; 如何使用</e