Re: list or regular expressions

From: Mischa Sandberg <mischa(at)ca(dot)sophos(dot)com>
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 23:21:08
Message-ID: 44A06BE4.8030606@ca.sophos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Rhys Stewart wrote:
> Hi all,
> 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.
> so it'd be a shorcut for typing yadiya ~* 'old' or yadiya ~* 'ulk' etc.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>

you mean, like

yadiya ~ 'old|ulk'

(or parametrically)

yadiya ~ ?::text ||'|'|| ?::text ||'|'|| ... :-)

--
Engineers think that equations approximate reality.
Physicists think that reality approximates the equations.
Mathematicians never make the connection.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John Tregea 2006-06-27 00:46:21 Re: Return the primary key of a newly inserted row?
Previous Message Scott Marlowe 2006-06-26 21:12:29 Re: RAID + PostgreSQL?