Skip to content

Tag: sql

How to log failed sql in hibernate?

I’m building a SpringBoot application with spring-data-jpa. I know how to log all sqls from this question. How to print a query string with parameter values when using Hibernate But what if I only want to log failed sqls? Answer There are two options: Configure sql logging with parameter values. Disable…

Count Most donator SQL

I wanted to know how would i count most donated number for a person and how to make list from most donator to the lowest. Database looks like this : – Donated Amount – Payer Email – 10 123456@…