Skip to content
Advertisement

like clause in JPA native sql query

I have a query that returns a list of products:

How do I add a LIKE clause to this?

When I execute this statement in my DB a get a result:

but how do I add LIKE to my JPA native query?

I have tried:

and

But none of these work.

Advertisement

Answer

I think that you want CONCAT():

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement