Re: Help with SELECT and string - Mailing list pgsql-admin

From Stephan Szabo
Subject Re: Help with SELECT and string
Date
Msg-id Pine.BSF.4.21.0110021037070.46830-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Help with SELECT and string  (Tomasz Misterka <tomasz@hieroglif.com.pl>)
List pgsql-admin
On Fri, 28 Sep 2001, Tomasz Misterka wrote:

> Hello,
>
> I've got a problem with finding how to search database with string without
> checking if string is "Chris" or "chris".
>
> Now when I'm searching database for word "chris" i can't find word
> "Chris" - how the SELECT should looks like?

Something like
select ... where lower(column) = 'chris'
should do what you want.  If you want to use indexes you'll need to
make an index on lower(column)



pgsql-admin by date:

Previous
From: Tomasz Misterka
Date:
Subject: Help with SELECT and string
Next
From: "Michael B. Babakov"
Date:
Subject: How to make 'tail -f' in PostgreSQL?