Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id E47F5475B85; Tue, 5 Nov 2002 10:42:55 -0500 (EST) Received: from relay3.softcomca.com (relay3.softcomca.com [168.144.1.70]) by postgresql.org (Postfix) with ESMTP id 4419247580B; Tue, 5 Nov 2002 10:42:55 -0500 (EST) Received: from M2W063.mail2web.com ([168.144.108.63]) by relay3.softcomca.com with Microsoft SMTPSVC(5.0.2195.5329); Tue, 5 Nov 2002 10:42:59 -0500 Message-ID: <293580-220021125154259358@M2W063.mail2web.com> X-Priority: 3 Reply-To: geek24@avantel.net X-Originating-IP: 148.223.148.245 X-URL: http://mail2web.com/ From: "geek24@avantel.net" To: pgsql-general@postgresql.org, pgsql-admin@postgresql.org Subject: Re: About lower and uppercase Date: Tue, 5 Nov 2002 10:42:59 -0500 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 05 Nov 2002 15:42:59.0416 (UTC) FILETIME=[04953D80:01C284E2] X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/54 X-Sequence-Number: 6242 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=E1nchez D=EDaz 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/ .