Re: Case insensitive select - Mailing list pgsql-sql

From Josh Berkus
Subject Re: Case insensitive select
Date
Msg-id 200206121808.19116.josh@agliodbs.com
Whole thread Raw
In response to Case insensitive select  ("isaac flemmin" <isaac@knox.net>)
Responses Re: Case insensitive select
List pgsql-sql
Issac,

> I am doing something wrong or it would be working. I really have no idea
> how to do a case insensitive query other than with the lower function.
> If there is anyone out there who has any ideas on how to help me or can
> point me toward something that will help me it would be very
> appreciated.

There is also:

SELECT * FROM test1 WHERE col1 ~* '^value';
or:
SELECT * FROM test1 WHERE col1 ILIKE 'value';

See Operators and Functions in the online docs.

--
-Josh Berkus



pgsql-sql by date:

Previous
From: "isaac flemmin"
Date:
Subject: Case insensitive select
Next
From: "isaac flemmin"
Date:
Subject: Re: Case insensitive select