Re: [SQL] Case in-sensitive

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>, "Carmen Wai" <wai_carmen(at)hotmail(dot)com>, <pgsql-sql(at)postgresql(dot)org>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: [SQL] Case in-sensitive
Date: 2002-07-25 02:27:42
Message-ID: 200207241927.42145.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

Chris,

> > Can I config the Postgresql so that it can match case
> > in-sensitive pattern
> > automatically? i.e. I don't need to explicit convert the pattern to lower
> > case like this: .....WHERE lower(textfield) LIKE lower(pattern)
>
> All you need to do is this:
>
> ......WHERE textfield ILIKE pattern

Though, keep in mind, lower(textfield) can be indexed, but ILIKE textfield
cannot.

--
-Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Lee 2002-07-25 02:55:04 Getting a Database List
Previous Message Christopher Kings-Lynne 2002-07-25 02:21:52 Re: [SQL] Case in-sensitive

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2002-07-25 10:34:16 Re: convert a bigint into a timestamp
Previous Message Christopher Kings-Lynne 2002-07-25 02:21:52 Re: [SQL] Case in-sensitive