AW: Case Insensitive Queries

From: Manessinger Andreas <man(at)adv(dot)magwien(dot)gv(dot)at>
To: pgsql-sql(at)postgresql(dot)org
Subject: AW: Case Insensitive Queries
Date: 2001-05-29 16:53:13
Message-ID: 7864CE46A3ACD311848B005004EB51A5BB4335@msxadv1.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> Is it possible to execute a query using a where clause that
> allows case
> insensitive comparison between a field and text.
>
> For example:
>
> select * from account where username = 'test'
>
> where username could be 'Test', which would be a match. As is, this
> compare is case sensitive.

select * from account where lower(username) = 'test';

----
Dipl.Ing. Andreas Manessinger - CCT / Competence Center Telematik
Magistrat der Stadt Wien, Magistratsabteilung 14 - ADV,
Rathausstr. 1, A-1082 Wien
E-Mail: man(at)adv(dot)magwien(dot)gv(dot)at
Tel: (+43 1) 4000-91176
Fax: (+43 1) 4000-99-91176
WWW: http://service.wien.gv.at/

Browse pgsql-sql by date

  From Date Subject
Next Message Joe Conway 2001-05-29 16:54:39 Re: Case Insensitive Queries
Previous Message Tim Barnard 2001-05-29 16:44:35 Re: Re: [SQL] Difficult SQL Statement