Skip to content
Advertisement

Query using ILIKE with IN

Is it possible to run a query using ILIKE with the IN function? For example:

I want to run the results returned from the nested query through the ILIKE function. Is there a way to do this?

Advertisement

Answer

Can be simpler:

You can check the resulting query plan with EXPLAIN ANALYZE.

You may need to add leading and trailing % to get partial matches:

Advertisement