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'