Re: [GENERAL] Case insensitive "contains" search

From: Oleg Broytmann <phd(at)sun(dot)med(dot)ru>
To: Wim Ceulemans <wim(dot)ceulemans(at)pophost(dot)eunet(dot)be>
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] Case insensitive "contains" search
Date: 1998-11-09 10:33:00
Message-ID: Pine.SOL2.3.96.SK.981109133154.972E-100000@sun.med.ru
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi!

On Mon, 9 Nov 1998, Wim Ceulemans wrote:
>
> select * from tablex where name = '%test%';
>
> When I want exactly the same but case insensitive, how do I do that? By

Convert all to uppercase. Something like
select * from tablex where UPPER(name) = '%TEST%';

Oleg.
----
Oleg Broytmann National Research Surgery Centre http://sun.med.ru/~phd/
Programmers don't die, they just GOSUB without RETURN.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Memphisto 1998-11-09 12:00:08 postgreSQL 6.3.2 and AIX
Previous Message Postgres DBA 1998-11-09 10:31:42 Re: [GENERAL] Case insensitive "contains" search