Re: Postgres case insensitive searches

John R Pierce <pierce@hogranch.com>

From: John R Pierce <pierce@hogranch.com>
To: pgsql-general@postgresql.org
Date: 2013-06-29T02:22:50Z
Lists: 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