pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Hartwig <daveh@insightdist.com>
To: S.Ramaswamy <srswamy@giasdl01.vsnl.net.in>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] How to Make Case InSensitive???
Date: Tue, 01 Sep 1998 12:21:34 -0400
Message-ID: <35EC1F0E.F300470F@insightdist.com> (raw)
References: <35EC1A87.A9943@giasdl01.vsnl.net.in>



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$'




view thread (11+ messages)  latest in thread

Message-ID: <35EC1F0E.F300470F@insightdist.com>
Permalink:  ../35EC1F0E.F300470F@insightdist.com/
Also on:    postgresql.org/message-id/35EC1F0E.F300470F@insightdist.com

 · 

reply

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: daveh@insightdist.com, srswamy@giasdl01.vsnl.net.in
  Subject: Re: [SQL] How to Make Case InSensitive???
  In-Reply-To: <35EC1F0E.F300470F@insightdist.com>
  References: <35EC1A87.A9943@giasdl01.vsnl.net.in> <35EC1F0E.F300470F@insightdist.com>

* 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