Re: [SQL] How to Make Case InSensitive??? - Mailing list pgsql-sql

From David Hartwig
Subject Re: [SQL] How to Make Case InSensitive???
Date
Msg-id 35EC3349.FE4C20FC@insightdist.com
Whole thread Raw
In response to How to Make Case InSensitive???  ("S.Ramaswamy" <srswamy@giasdl01.vsnl.net.in>)
List pgsql-sql

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.


pgsql-sql by date:

Previous
From: Leslie Mikesell
Date:
Subject: rename table - primary key index?
Next
From: Sergei Barbarash
Date:
Subject: indexing datetime