Re[2]: [SQL] How to Make Case InSensitive???

From: Sferacarta Software <sferac(at)bo(dot)nettuno(dot)it>
To: Marcio Macedo <marciom(at)conectiva(dot)com(dot)br>, David Hartwig <daveh(at)insightdist(dot)com>, Barracuda <cuda_fx(at)yahoo(dot)com>, pgsql-sql(at)postgresql(dot)org, "S(dot)Ramaswamy" <srswamy(at)giasdl01(dot)vsnl(dot)net(dot)in>
Subject: Re[2]: [SQL] How to Make Case InSensitive???
Date: 1998-09-16 14:14:20
Message-ID: 10676.980916@bo.nettuno.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)insightdist(dot)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'

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Herouth Maoz 1998-09-16 14:42:36 Re[2]: [SQL] How to Make Case InSensitive???
Previous Message Barracuda 1998-09-16 13:48:10 Re: [SQL] How to Make Case InSensitive???