Re: Help with SELECT and string

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Tomasz Misterka <tomasz(at)hieroglif(dot)com(dot)pl>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Help with SELECT and string
Date: 2001-10-02 17:37:59
Message-ID: Pine.BSF.4.21.0110021037070.46830-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Michael B. Babakov 2001-10-02 18:49:45 How to make 'tail -f' in PostgreSQL?
Previous Message Nick Fankhauser 2001-10-02 17:22:57 Re: Help with SELECT and string