Re: list or regular expressions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Rhys Stewart" <rhys(dot)stewart(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: list or regular expressions
Date: 2006-06-26 20:19:40
Message-ID: 22528.1151353180@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Rhys Stewart" <rhys(dot)stewart(at)gmail(dot)com> writes:
> can i search in a list or regular expression....eg

> "select yadi from ya where yadiya in ('old', 'ulk', 'orb')"

> but instead of in ther'd be another operator or a LIKE IN.

You could use "<operator> ANY" --- "IN" is just a shorthand for "= ANY".
I don't think the parser will take LIKE ANY, but you could use the
equivalent operator name ("~~" I think, check the manual).

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-06-26 20:25:10 Re: limit over attribute size if index over it exists
Previous Message Rhys Stewart 2006-06-26 20:11:11 list or regular expressions