Re: Case-sensitive

From: Thomas Pundt <mlists(at)rp-online(dot)de>
To: pgsql-admin(at)postgresql(dot)org
Cc: "Alexander B(dot)" <burbello3000(at)yahoo(dot)com(dot)br>
Subject: Re: Case-sensitive
Date: 2007-01-25 12:05:47
Message-ID: 200701251305.47779.mlists@rp-online.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

On Thursday 25 January 2007 11:52, Alexander B. wrote:
| One developer asked me about case-sensitive, if its possible disable
| Postgres not consider when using comparative functions.
| Eg.:
| select * from people
| where upper(name) like upper('A%');
|
| Is there any parameter that don't take in account case-sensitive, or any
| other way to treat??

name ilike 'a%';
name ~* '^a';

For pattern matching operators you can take a look at
http://www.postgresql.org/docs/8.2/interactive/functions-matching.html

Ciao,
Thomas

--
Thomas Pundt <thomas(dot)pundt(at)rp-online(dot)de> ---- http://rp-online.de/ ----

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Shoaib Mir 2007-01-25 12:44:37 Re: Case-sensitive
Previous Message Alexander B. 2007-01-25 10:52:28 Case-sensitive