Re: [GENERAL] Search

From: Gilles Darold <darold(at)neptune(dot)fr>
To: pgsql-general(at)hub(dot)org
Subject: Re: [GENERAL] Search
Date: 1999-08-01 00:43:32
Message-ID: 37A39834.7337D168@neptune.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

For case insensitive you must use the regexp search as follow :

SELECT title, firstname, lastname, description FROM stuff
WHERE title *~ '.*<keyword>.*' AND firtsname *~ '.*<keyword>.*';

>
> P.S.: as far as I know there is no locale for windows-1251 and,
> unfortunately, I can't store data in koi8-r whose locale present
> in almost all UNIX'es.

I don't know about windows-1251. Perhaps this can't help you. But if
you have japanese in you database, you can proceed a search on it so
why not windows-1251 ?

A+

Gilles

In response to

  • Search at 1999-07-31 08:15:18 from Dmitry Popov

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mark Dalphin 1999-08-01 00:52:08 Problem with a GROUP BY clause
Previous Message astromonk 1999-08-01 00:18:25 Problems installing RPMS