Re: list or regular expressions - Mailing list pgsql-general

From Mischa Sandberg
Subject Re: list or regular expressions
Date
Msg-id 44A06BE4.8030606@ca.sophos.com
Whole thread Raw
In response to list or regular expressions  ("Rhys Stewart" <rhys.stewart@gmail.com>)
List 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.

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: RAID + PostgreSQL?
Next
From: John Tregea
Date:
Subject: Re: Return the primary key of a newly inserted row?