How to use PostgreSQL string_to_array function in CriteriaBuilder

Viewed 16

I tried to build the following sql statement through jpa CriteriaBuilder, but didn't find the right way to use it for me。

SELECT * from table WHERE string_to_array(column, ',') @> array['array_item']
0 Answers
Related