pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
About lower and uppercase
5+ messages / 4 participants
[nested] [flat]

* About lower and uppercase
@ 2002-11-05 03:54 Sonia Sánchez Díaz <geek24@avantel.net>
  2002-11-05 05:50 ` Re: About lower and uppercase Stephan Szabo <sszabo@megazone23.bigpanda.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Sonia Sánchez Díaz @ 2002-11-05 03:54 UTC (permalink / raw)
  To: pgsql <pgsql-general@postgresql.org>; pgsql-admin

Hi!

I don't  know if this is possible from postgresql configuration...

I want to ignore the use of uppercase and lowercase from the data restored
into the DB...

I mean, if I  write a query like this:

select * from fruits where fruit_name like 'orange';

I could get any result where the string looks like:

orange
Orange
ORANGE

Is it possible???

Regards.





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: About lower and uppercase
  2002-11-05 03:54 About lower and uppercase Sonia Sánchez Díaz <geek24@avantel.net>
@ 2002-11-05 05:50 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
  2002-11-05 08:22   ` Re: [ADMIN] About lower and uppercase frbn <frbn@efbs-seafrigo.fr>
  0 siblings, 1 reply; 5+ messages in thread

From: Stephan Szabo @ 2002-11-05 05:50 UTC (permalink / raw)
  To: Sonia Sánchez Díaz <geek24@avantel.net>; +Cc: pgsql <pgsql-general@postgresql.org>; pgsql-admin

On Mon, 4 Nov 2002, [iso-8859-1] Sonia Sánchez Díaz wrote:

> Hi!
>
> I don't  know if this is possible from postgresql configuration...
>
> I want to ignore the use of uppercase and lowercase from the data restored
> into the DB...
>
> I mean, if I  write a query like this:
>
> select * from fruits where fruit_name like 'orange';
>
> I could get any result where the string looks like:
>
> orange
> Orange
> ORANGE
>
> Is it possible???

Not really without doing a little bit of changing
to the query (for example using ILIKE rather than LIKE
or lower(fruit_name) like 'orange' with an appropriate
index on lower(fruit_name).

Theoretically, it could perhaps be possible to create a locale
which compare 'orange' and 'OraNgE' equally and then
initdb in that locale, but I've never tried it so I don't
know if it'd work.





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: [ADMIN] About lower and uppercase
  2002-11-05 03:54 About lower and uppercase Sonia Sánchez Díaz <geek24@avantel.net>
  2002-11-05 05:50 ` Re: About lower and uppercase Stephan Szabo <sszabo@megazone23.bigpanda.com>
@ 2002-11-05 08:22   ` frbn <frbn@efbs-seafrigo.fr>
  0 siblings, 0 replies; 5+ messages in thread

From: frbn @ 2002-11-05 08:22 UTC (permalink / raw)
  To: Sonia Sánchez Díaz <geek24@avantel.net>; +Cc: pgsql <pgsql-general@postgresql.org>

select * from fruits where fruit_name ~* 'orange';


Stephan Szabo wrote:
On Mon, 4 Nov 2002, [iso-8859-1] Sonia S?nchez D?az wrote:


 >> Hi!
 >>
 >> I don't  know if this is possible from postgresql configuration...
 >>
 >> I want to ignore the use of uppercase and lowercase from the data restored
 >> into the DB...
 >>
 >> I mean, if I  write a query like this:
 >>
 >> select * from fruits where fruit_name like 'orange';
 >>
 >> I could get any result where the string looks like:
 >>
 >> orange
 >> Orange
 >> ORANGE
 >>
 >> Is it possible???


 >Not really without doing a little bit of changing
 >to the query (for example using ILIKE rather than LIKE
 >or lower(fruit_name) like 'orange' with an appropriate
 >index on lower(fruit_name).


Theoretically, it could perhaps be possible to create a locale
which compare 'orange' and 'OraNgE' equally and then
initdb in that locale, but I've never tried it so I don't
know if it'd work.




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: About lower and uppercase
@ 2002-11-05 15:42 geek24@avantel.net <geek24@avantel.net>
  0 siblings, 0 replies; 5+ messages in thread

From: geek24@avantel.net @ 2002-11-05 15:42 UTC (permalink / raw)
  To: pgsql-general@postgresql.org; pgsql-admin

Thanks!!!

I use ilike and I get the result that I want...

Thanks!!!!!

Regards!

Original Message:
-----------------
From: Stephan Szabo sszabo@megazone23.bigpanda.com
Date: Mon, 04 Nov 2002 21:50:06 -0800 (PST)
To: geek24@avantel.net, pgsql-general@postgresql.org,
pgsql-admin@postgresql.org
Subject: Re: [ADMIN] About lower and uppercase


On Mon, 4 Nov 2002, [iso-8859-1] Sonia Sánchez Díaz wrote:

> Hi!
>
> I don't  know if this is possible from postgresql configuration...
>
> I want to ignore the use of uppercase and lowercase from the data restored
> into the DB...
>
> I mean, if I  write a query like this:
>
> select * from fruits where fruit_name like 'orange';
>
> I could get any result where the string looks like:
>
> orange
> Orange
> ORANGE
>
> Is it possible???

Not really without doing a little bit of changing
to the query (for example using ILIKE rather than LIKE
or lower(fruit_name) like 'orange' with an appropriate
index on lower(fruit_name).

Theoretically, it could perhaps be possible to create a locale
which compare 'orange' and 'OraNgE' equally and then
initdb in that locale, but I've never tried it so I don't
know if it'd work.



--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: About lower and uppercase
@ 2002-11-05 15:43 geek24@avantel.net <geek24@avantel.net>
  0 siblings, 0 replies; 5+ messages in thread

From: geek24@avantel.net @ 2002-11-05 15:43 UTC (permalink / raw)
  To: pgsql-general@postgresql.org; pgsql-admin

Thanks!!!

I use ilike and I get the result that I want...

Thanks!!!!!

Regards!

Original Message:
-----------------
From: Stephan Szabo sszabo@megazone23.bigpanda.com
Date: Mon, 04 Nov 2002 21:50:06 -0800 (PST)
To: geek24@avantel.net, pgsql-general@postgresql.org,
pgsql-admin@postgresql.org
Subject: Re: [ADMIN] About lower and uppercase


On Mon, 4 Nov 2002, [iso-8859-1] Sonia Sánchez Díaz wrote:

> Hi!
>
> I don't  know if this is possible from postgresql configuration...
>
> I want to ignore the use of uppercase and lowercase from the data restored
> into the DB...
>
> I mean, if I  write a query like this:
>
> select * from fruits where fruit_name like 'orange';
>
> I could get any result where the string looks like:
>
> orange
> Orange
> ORANGE
>
> Is it possible???

Not really without doing a little bit of changing
to the query (for example using ILIKE rather than LIKE
or lower(fruit_name) like 'orange' with an appropriate
index on lower(fruit_name).

Theoretically, it could perhaps be possible to create a locale
which compare 'orange' and 'OraNgE' equally and then
initdb in that locale, but I've never tried it so I don't
know if it'd work.



--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .





^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2002-11-05 15:43 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-11-05 03:54 About lower and uppercase Sonia Sánchez Díaz <geek24@avantel.net>
2002-11-05 05:50 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
2002-11-05 08:22   ` frbn <frbn@efbs-seafrigo.fr>
2002-11-05 15:42 Re: About lower and uppercase geek24@avantel.net <geek24@avantel.net>
2002-11-05 15:43 Re: About lower and uppercase geek24@avantel.net <geek24@avantel.net>

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