Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 17B46475BA7 for ; Sat, 10 Aug 2002 11:59:03 -0400 (EDT) Received: from anchor-post-32.mail.demon.net (anchor-post-32.mail.demon.net [194.217.242.90]) by postgresql.org (Postfix) with ESMTP id 9260C475B5F for ; Sat, 10 Aug 2002 11:59:02 -0400 (EDT) Received: from lfix.demon.co.uk ([158.152.59.127] helo=linda.lfix.co.uk) by anchor-post-32.mail.demon.net with esmtp (Exim 3.35 #1) id 17dYdv-000Fhs-0W; Sat, 10 Aug 2002 16:59:07 +0100 Received: from localhost ([127.0.0.1] helo=localhost.localdomain ident=olly) by linda.lfix.co.uk with esmtp (Exim 3.35 #1 (Debian)) id 17dYdu-0005V8-00; Sat, 10 Aug 2002 16:59:06 +0100 Subject: Re: Case insensitive From: Oliver Elphick To: Carmen Wai Cc: pgsql-general@postgresql.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.7 Date: 10 Aug 2002 16:59:05 +0100 Message-Id: <1028995146.31339.175.camel@linda> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/463 X-Sequence-Number: 28808 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