Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: list or regular expressions



"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



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group