Re: Case (in)sensitive - Mailing list pgsql-novice

From Claus Houmøller
Subject Re: Case (in)sensitive
Date
Msg-id 39CCEB2D.BEF323D5@virtualhost.dk
Whole thread Raw
In response to Case (in)sensitive  (Boszormenyi Laszlo <gcs@jupiter.hlab.uni-miskolc.hu>)
List pgsql-novice
Hey,

try a: "select * from city where lower(name) like '%bud%';", that should
give you the name, of this nice city...

Claus

Boszormenyi Laszlo wrote:
>
> Hello!
>
>  I have a database with city names, so the first letter is capitalised.
> I want to let the user search for part of the city name. How can I do case
> insensitive for this? You know "... like '%bud%';" won't find Budapest.
>
> Thanks in advance,
>         Laszlo Boszormenyi

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: [SQL] how to store a query, that results in a table
Next
From: Boszormenyi Laszlo
Date:
Subject: distinct+trim=error?