From: Sferacarta Software <sferac@bo.nettuno.it>
To: Marcio Macedo <marciom@conectiva.com.br>
To: David Hartwig <daveh@insightdist.com>
To: Barracuda <cuda_fx@yahoo.com>
To: pgsql-sql@postgresql.org, "S.Ramaswamy" <srswamy@giasdl01.vsnl.net.in>
Subject: Re[2]: [SQL] How to Make Case InSensitive???
Date: Wed, 16 Sep 1998 16:14:20 +0200
Message-ID: <10676.980916@bo.nettuno.it> (raw)
References: <19980916134810.21155.rocketmail@send101.yahoomail.com>
Hello Barracuda,
mercoledì, 16 settembre 98, you wrote:
B> thank you for this tip! don't know what the ^ or the $ is used for
regular expression operators ^ stand for first character and $ stand
for last character:
~* '^india$'
matches India
india
INDIA
but not Indiana
New India
>>
B> but the ~* and the \do helped me out a great deal. No info on this in
B> any documentation.
Take a look at PostgreSQL User's Guide, Chapter 5, there's some
information about PostgreSQL operators.
B> Charles
B> ---David Hartwig <daveh@insightdist.com> wrote:
>>
>>
>>
>> Marcio Macedo wrote:
>>
>> > Hey...
>> >
>> > How does this " ~* " operator works ?!?!?!
>> >
>> > David Hartwig wrote:
>> > >
>> > >
>> > > SELECT * FROM series WHERE upper(NAME) = 'INDIA'
>> > > or
>> > > SELECT * FROM series WHERE NAME ~* '^india$'
>>
>> >
>>
>> I don't use it myself, but it is a case insensitive regular expression
>> match operator. "~' is the case sensitive operator. Do "\do" in
>> psql to see all the operators.
>>
>>
>>
B> _________________________________________________________
B> DO YOU YAHOO!?
B> Get your free @yahoo.com address at http://mail.yahoo.com
Jose'
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: sferac@bo.nettuno.it, marciom@conectiva.com.br, daveh@insightdist.com, cuda_fx@yahoo.com, srswamy@giasdl01.vsnl.net.in
Subject: Re: [SQL] How to Make Case InSensitive???
In-Reply-To: <10676.980916@bo.nettuno.it>
References: <19980916134810.21155.rocketmail@send101.yahoomail.com> <10676.980916@bo.nettuno.it>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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