Re: Queries

Поиск
Список
Период
Сортировка
От Joel Burton
Тема Re: Queries
Дата
Msg-id Pine.LNX.4.21.0105041612150.1389-100000@olympus.scw.org
обсуждение исходный текст
Ответ на Queries  (tsattler@speakeasy.net)
Список pgsql-admin
On Fri, 4 May 2001 tsattler@speakeasy.net wrote:

> Greetings All.
>
> I have a record on my database with a last name of 'DeFelice'.
>
> I want to be able to retrieve that record whether a user enters 'DeFelice', 'Defelice', 'defelice', or 'DEFELICE'.
Isthere a way I can do that?  Is that what the "ilike" function does? 

CREATE INDEX lname_lower ON person ( lower(lname) );
  (above step is optional, but helps performance)

SELECT * FROM person WHERE lower(lname) =  'defelice'

should be faster than ILIKE.

--
Joel Burton   <jburton@scw.org>
Director of Information Systems, Support Center of Washington


В списке pgsql-admin по дате отправления:

Предыдущее
От: "Ligia Pimentel"
Дата:
Сообщение: Problem connecting from pgadmin: CACHE LOOKUP FOR USER XX FAILED
Следующее
От: "áÎÄÒÅÊ íÉËÕÌÏ×"
Дата:
Сообщение: bugs or ? in PostgreSQL 7.1