I am executing the below query:-
select FUNCTION(LOWER,d.comp) from peopledbvo d where d.person = :persons;
but getting the error unexpected token [FUNCTION] internal exception, i also tried FUNC but getting the same error. here i am using FUNCTION to execute the database function LOWER.
答案 0 :(得分:0)
You can directly use the LOWER function because it's part of the JPA spec: http://www.objectdb.com/java/jpa/query/jpql/string
select LOWER(d.comp) from peopledbvo d where d.person = :persons;