Re: Case (in)sensitive

From: Claus Houmøller <claus(at)virtualhost(dot)dk>
To: Boszormenyi Laszlo <gcs(at)jupiter(dot)hlab(dot)uni-miskolc(dot)hu>
Cc: pgsql-novice(at)hub(dot)org
Subject: Re: Case (in)sensitive
Date: 2000-09-23 17:41:01
Message-ID: 39CCEB2D.BEF323D5@virtualhost.dk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Boszormenyi Laszlo 2000-09-24 13:43:07 distinct+trim=error?
Previous Message Boszormenyi Laszlo 2000-09-23 16:23:37 Case (in)sensitive