0
我試圖運行這個簡單的查詢但沒有成功。 有人可以幫助我嗎?彈簧數據jpa與組之和
謝謝
@Query(nativeQuery = true, value = "select kategorie, sum(amount) amount from Transaction where date between ?1 and ?2 group by kategorie")
List<Transaction> countCashPaymentInMonth(Date from, Date to);
在MySQL是查詢工作的罰款。
我收到
ERROR o.h.e.jdbc.spi.SqlExceptionHelper - Column "id" was not find
我使用
spring-boot-starter-data-jpa
1.3.3.RELEASE