Re: Postgres case insensitive searches

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgres case insensitive searches
Date: 2013-06-29 02:22:50
Message-ID: 51CE44FA.5040905@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support pgsql-general

On 6/28/2013 6:59 PM, bhanu udaya wrote:
> select * from table where type like 'ab%'. It should get all above 3
> records. Is there a way the database itself can be made
> case-insensitive with UTF8 characterset. I tried with character type &
> collation POSIX, but it did not really help.

use ILIKE

--
john r pierce 37N 122W
somewhere on the middle of the left coast

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Alban Hertroys 2013-06-29 07:37:51 Re: Postgres case insensitive searches
Previous Message bhanu udaya 2013-06-29 01:59:47 Re: Postgres case insensitive searches

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2013-06-29 03:58:20 Re: Cleaning up a text import
Previous Message bhanu udaya 2013-06-29 01:59:47 Re: Postgres case insensitive searches