Case Insensitive Queries

From: Mark <mark(at)zserve(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Case Insensitive Queries
Date: 2001-05-29 15:11:23
Message-ID: 200105291603.f4TG3BW08512@mail.ldssingles.com
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.

grep'd the source, but stricmp is only used for keywords and not actual
column data.

Any help would be greatly appreciated.

Thanks,

Mark

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message tjk@tksoft.com 2001-05-29 15:23:52 Re: Case Insensitive Queries
Previous Message Tom Lane 2001-05-29 14:50:46 Re: Re: [SQL] Difficult SQL Statement