Re: Case insensitive select

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: "isaac flemmin" <isaac(at)knox(dot)net>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Case insensitive select
Date: 2002-06-13 01:08:19
Message-ID: 200206121808.19116.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message isaac flemmin 2002-06-13 01:27:02 Re: Case insensitive select
Previous Message isaac flemmin 2002-06-13 00:43:39 Case insensitive select