pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robby Russell <rrussell@commandprompt.com>
To: Lynna Landstreet <lynna@gallery44.org>
To: pgsql-php@postgresql.org
Subject: Re: Case sensitivity when searching for and displaying data
Date: Wed, 03 Sep 2003 16:20:34 -0700
Message-ID: <3F567742.9040205@commandprompt.com> (raw)
In-Reply-To: <BB7BE411.AB4%lynna@gallery44.org>
References: <BB7BE411.AB4%lynna@gallery44.org>

Lynna Landstreet wrote:
> Hello,
> 
> I've gotten a simple PHP search page working on the artists database that
> I've been developing these past few months, but I'm running into a few
> problems with PostgreSQL's case sensitivity.
> 

PostgreSQL has regular expression capability.

Try this with case-INsensitivity

SELECT * FROM table WHERE name ~* 'nAmE';

If you want it without insensitive...remove the asterisk.

-Robby

-- 
Robby Russell,  |  Sr. Administrator / Lead Programmer
Command Prompt, Inc.   |  http://www.commandprompt.com
rrussell@commandprompt.com | Telephone: (503) 222.2783




view thread (6+ messages)  latest in thread

Message-ID: <3F567742.9040205@commandprompt.com>
Permalink:  ../3F567742.9040205@commandprompt.com/
Also on:    postgresql.org/message-id/3F567742.9040205@commandprompt.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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: rrussell@commandprompt.com, lynna@gallery44.org
  Subject: Re: Case sensitivity when searching for and displaying data
  In-Reply-To: <3F567742.9040205@commandprompt.com>
  References: <BB7BE411.AB4%lynna@gallery44.org> <3F567742.9040205@commandprompt.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