pg.ddx.io pgsql-sql@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: tjk@tksoft.com <tjk@tksoft.com>
To: mark@zserve.com
Cc: pgsql-sql@postgresql.org
Subject: Re: Case Insensitive Queries
Date: Tue, 29 May 2001 08:23:52 -0700 (PDT)
Message-ID: <200105291523.IAA23977@smtp3.tksoft.com> (raw)
In-Reply-To: <no.id>
select * from account where lower(username) = lower('test');
Troy
>
> 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
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>
view thread (19+ messages) latest in thread
Message-ID: <200105291523.IAA23977@smtp3.tksoft.com> Permalink: ../200105291523.IAA23977@smtp3.tksoft.com/ Also on: postgresql.org/message-id/200105291523.IAA23977@smtp3.tksoft.com ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients using the --to and --cc options: reply via email To: pgsql-sql@postgresql.org Cc: tjk@tksoft.com, mark@zserve.com Subject: Re: Case Insensitive Queries In-Reply-To: <200105291523.IAA23977@smtp3.tksoft.com> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox