Re: any chance of "like ANY (array[])" like the "= ANY (array[])" syntax? - Mailing list pgsql-general

From Tom Lane
Subject Re: any chance of "like ANY (array[])" like the "= ANY (array[])" syntax?
Date
Msg-id 11958.1063141118@sss.pgh.pa.us
Whole thread Raw
In response to any chance of "like ANY (array[])" like the "= ANY (array[])" syntax?  (Greg Stark <gsstark@mit.edu>)
Responses Re: any chance of "like ANY (array[])" like the "= ANY (array[])" syntax?
List pgsql-general
Greg Stark <gsstark@mit.edu> writes:
> I find myself wishing I had a syntax "LIKE ANY (array['foo','bar'])".

You do, because LIKE has an equivalent operator.

    foo ~~ ANY (array[])

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Kill -9 Postmaster and Temporary Tables
Next
From: "Andrew L. Gould"
Date:
Subject: Re: Find overlapping time intervals, how?