pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Elphick <olly@lfix.co.uk>
To: Carmen Wai <wai_carmen@hotmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Case insensitive
Date: 10 Aug 2002 16:59:05 +0100
Message-ID: <1028995146.31339.175.camel@linda> (raw)
In-Reply-To: <F224zTS6GDa7jp2L4VK00005cfa@hotmail.com>
References: <F224zTS6GDa7jp2L4VK00005cfa@hotmail.com>

On Sat, 2002-08-10 at 16:22, Carmen Wai wrote:
> Hi:
> 
> Do anyone have any idea to configure the postgresql so that it can perform 
> case-insensitive matching automatically? [other than--select * from table 
> where lower(col_value) = lower(pattern)]

You can use ILIKE  (WHERE col ILIKE 'pattern')

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight, UK                            
http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "If ye abide in me, and my words abide in you, ye shall
      ask what ye will, and it shall be done unto you."     
                                      John 15:7 




view thread (21+ messages)  latest in thread

Message-ID: <1028995146.31339.175.camel@linda>
Permalink:  ../1028995146.31339.175.camel@linda/
Also on:    postgresql.org/message-id/1028995146.31339.175.camel@linda

 · 

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-general@postgresql.org
  Cc: olly@lfix.co.uk, wai_carmen@hotmail.com
  Subject: Re: Case insensitive
  In-Reply-To: <1028995146.31339.175.camel@linda>
  References: <F224zTS6GDa7jp2L4VK00005cfa@hotmail.com> <1028995146.31339.175.camel@linda>

* 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