Re: Case sensitivity when searching for and displaying data

From: Robby Russell <rrussell(at)commandprompt(dot)com>
To: Lynna Landstreet <lynna(at)gallery44(dot)org>, pgsql-php(at)postgresql(dot)org
Subject: Re: Case sensitivity when searching for and displaying data
Date: 2003-09-03 23:20:34
Message-ID: 3F567742.9040205@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

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(at)commandprompt(dot)com | Telephone: (503) 222.2783

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Luis H 2003-09-04 02:40:05 Re: Case sensitivity when searching for and displaying data
Previous Message Rod Taylor 2003-09-03 23:18:04 Re: Case sensitivity when searching for and displaying data