Re: Flag for insentive use of Postgres? - Mailing list pgsql-general

From Andrew Sullivan
Subject Re: Flag for insentive use of Postgres?
Date
Msg-id 20020710102415.C24611@mail.libertyrms.com
Whole thread Raw
In response to Flag for insentive use of Postgres?  (Andreas Schlegel <schlegel@software.b.uunet.de>)
Responses Re: Flag for insentive use of Postgres?
List pgsql-general
On Wed, Jul 10, 2002 at 02:03:30PM +0200, Andreas Schlegel wrote:
> Hi,
>
> is there a flag to set which determines if queries run successful with a
> case sensitive or case insensitive WHERE clause:
>
> For example: if I have a name1 colum with a value 'Test' I would like to
> search for 'test' and get also this row
> (select * from tTest where name1='test')

If all you want is the values to match without case sensitivity, use
ILIKE.  (The rules are different in different locales, and I don't
even know how ILIKE works for non-C locales.)

A

--
----
Andrew Sullivan                               87 Mowat Avenue
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M6K 3E3
                                         +1 416 646 3304 x110


pgsql-general by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: Date/time precision in 7.2
Next
From: Stephane Bortzmeyer
Date:
Subject: Re: Flag for insentive use of Postgres?