Re: uppercase = lowercase

From: Richard Huxton <dev(at)archonet(dot)com>
To: "jose antonio leo" <jaleo8(at)storelandia(dot)com>, "pgsql-general" <pgsql-general(at)postgresql(dot)org>
Subject: Re: uppercase = lowercase
Date: 2003-02-14 09:54:45
Message-ID: 200302140954.45120.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Friday 14 Feb 2003 8:51 am, jose antonio leo wrote:
> Hi!!
>
> How can I make selects not sensitive uppercase and lowercase characters?
> This is possible modifying something of psql configuration?

This isn't possible in a general way. If you want "Richard","RICHARD" and
"riCHard" to all test the same you'll need to do something like.

SELECT * FROM people WHERE lower(first_name)='richard';

You can create an index on lower(first_name) if you need to speed things
along.

--
Richard Huxton

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Francesco Piccinini 2003-02-14 10:36:45 just 3 question
Previous Message Richard Huxton 2003-02-14 09:52:03 Re: 'Universal' schedule table defintion