pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedRe: pattern matching operator
4+ messages / 4 participants
[nested] [flat]
* Re: pattern matching operator
@ 2000-05-16 08:28 omid omoomi <oomoomi@hotmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: omid omoomi @ 2000-05-16 08:28 UTC (permalink / raw)
To: twallingford@indexc.com; pgsql-sql
Hi,
May be you need some thing like this:
Select field1, field2 from table where field1~*'string' ;
Hope that helps,
Omid Omoomi
>From: "Wallingford, Ted" <twallingford@indexc.com>
>To: pgsql-sql@postgresql.org
>Subject: [SQL] pattern matching operator
>Date: Tue, 16 May 2000 09:45:55 -0400
>
>I need some help (the postgresql.org documentation pages are down??)
>
>I need to know what the pattern-matching operator is for string values in a
>select query...
>
>select field,field from table where field ?????? 'string';
>
>I want to wildcard both ends of the string..
>
>Thanks!
>
>Ted Wallingford
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
^ permalink raw reply [nested|flat] 4+ messages in thread
* pattern matching operator
@ 2000-05-16 13:45 Wallingford, Ted <twallingford@indexc.com>
0 siblings, 1 reply; 4+ messages in thread
From: Wallingford, Ted @ 2000-05-16 13:45 UTC (permalink / raw)
To: pgsql-sql
I need some help (the postgresql.org documentation pages are down??)
I need to know what the pattern-matching operator is for string values in a
select query...
select field,field from table where field ?????? 'string';
I want to wildcard both ends of the string..
Thanks!
Ted Wallingford
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pattern matching operator
@ 2000-05-16 15:54 mig@utdt.edu
parent: omid omoomi <oomoomi@hotmail.com>
0 siblings, 0 replies; 4+ messages in thread
From: mig@utdt.edu @ 2000-05-16 15:54 UTC (permalink / raw)
To: oomoomi@hotmail.com; +Cc: twallingford@indexc.com; pgsql-sql
You can also do it in plain SQL, no regexp:
select field,field from table where field like '%string%';
>X-Originating-IP: [195.200.226.110]
>From: "omid omoomi" <oomoomi@hotmail.com>
>Date: Tue, 16 May 2000 08:28:29 PDT
>Content-Type: text/plain; format=flowed
>X-Mailing-List: pgsql-sql@postgresql.org
>Precedence: bulk
>Sender: pgsql-sql-owner@hub.org
>
>Hi,
>May be you need some thing like this:
>
>Select field1, field2 from table where field1~*'string' ;
>
>Hope that helps,
>Omid Omoomi
>
>
>>From: "Wallingford, Ted" <twallingford@indexc.com>
>>To: pgsql-sql@postgresql.org
>>Subject: [SQL] pattern matching operator
>>Date: Tue, 16 May 2000 09:45:55 -0400
>>
>>I need some help (the postgresql.org documentation pages are down??)
>>
>>I need to know what the pattern-matching operator is for string values in a
>>select query...
>>
>>select field,field from table where field ?????? 'string';
>>
>>I want to wildcard both ends of the string..
>>
>>Thanks!
>>
>>Ted Wallingford
>
>________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pattern matching operator
@ 2000-05-16 16:23 Joseph Shraibman <jks@p1.selectacast.net>
parent: Wallingford, Ted <twallingford@indexc.com>
0 siblings, 0 replies; 4+ messages in thread
From: Joseph Shraibman @ 2000-05-16 16:23 UTC (permalink / raw)
To: Wallingford, Ted <twallingford@indexc.com>; +Cc: pgsql-sql
"Wallingford, Ted" wrote:
> I need some help (the postgresql.org documentation pages are down??)
>
postgres comes with the documentation.
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2000-05-16 16:23 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-05-16 08:28 Re: pattern matching operator omid omoomi <oomoomi@hotmail.com>
2000-05-16 15:54 ` mig@utdt.edu
2000-05-16 13:45 pattern matching operator Wallingford, Ted <twallingford@indexc.com>
2000-05-16 16:23 ` Joseph Shraibman <jks@p1.selectacast.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox