"Gauthier, Dave" <dave(dot)gauthier(at)intel(dot)com> writes:
> select * from footable where name in (select val from match_these)
> ... won't work because "in" implies equality. I want something like...
> select * from footable where name like (select val from match_these)
What you need is
select * from footable where name ~~ any (select val from match_these)
It would probably be clearer to write
select * from footable where name like any (select val from match_these)
but the ANY syntax requires an operator name, so you have to write the
operator equivalent for LIKE.
regards, tom lane