Re: Pattern Matchig

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tk421 <vrobador(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Pattern Matchig
Date: 2008-04-08 17:24:09
Message-ID: 20080408172409.GJ9062@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Tk421 escribió:

> The result is only record number 3. How can i search the entire
> FOOBAR word? The result wanted must be all, excepting 5.

Something like this:

select code from table where text ~ '[[:<:]]foobar[[:>:]]'

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tk421 2008-04-08 17:39:38 Re: Pattern Matchig
Previous Message Tk421 2008-04-08 17:14:24 Pattern Matchig