| From: | "Dana M(dot) Epp" <eppdm(at)netmaster(dot)ca> |
|---|---|
| To: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Doing case-insensitive queries. |
| Date: | 1998-05-26 17:24:34 |
| Message-ID: | 356AFAD2.23A33F4D@netmaster.ca |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
I am trying to query a database case-insenstively on a char() field, and
failing miserably. Could anyone direct me to some documentation that
properly explains how to accomplish such a task in PostgreSQL.
Items like ~* don't work when using the LIKE for me.
Here is my current code segment on how I am doing this query with case
sensitivity.
$qstring = "select * from $database where vendor LIKE
\'\%$inqstring\%\' ; ";
$result = $con->exec($qstring);
Can anyone tell me how I could query that without case-sensitivity?
--
Dana M. Epp
eppdm(at)netmaster(dot)ca
NetMaster Networking Solutions, Inc.
http://www.netmaster.ca
"Connecting networks to the Internet"
| From | Date | Subject | |
|---|---|---|---|
| Next Message | The Hermit Hacker | 1998-05-26 17:34:33 | Re: [SQL] Doing case-insensitive queries. |
| Previous Message | Mike Lemler | 1998-05-26 14:25:34 | Re: [SQL] Postgress with CGI |