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 35EC1F0E.F300470F@insightdist.com
Whole thread Raw
In response to How to Make Case InSensitive???  ("S.Ramaswamy" <srswamy@giasdl01.vsnl.net.in>)
List pgsql-sql

S.Ramaswamy wrote:

> When I use SQL statements, how can I make it case insensitive. If I
> use
>
>     SELECT * FROM series WHERE NAME='India'
>
> I want to select rows including those where NAME='INDIA' / NAME =
> 'india'
> and so on.
>
> Can someone help me in the above??

     SELECT * FROM series WHERE upper(NAME) = 'INDIA'
                            or
     SELECT * FROM series WHERE NAME ~* '^india$'


pgsql-sql by date:

Previous
From: "S.Ramaswamy"
Date:
Subject: How to Make Case InSensitive???
Next
From: Marcio Macedo
Date:
Subject: Re: [SQL] How to Make Case InSensitive???