Re: Textmatchning

Поиск
Список
Период
Сортировка
От Daniel Verite
Тема Re: Textmatchning
Дата
Msg-id 6e33892f-56be-4d00-ad48-1561146da276@mm
обсуждение исходный текст
Ответ на Textmatchning  ("A B" <gentosaker@gmail.com>)
Список pgsql-general
    A B wrote:

> I would like to compare two columns a and b and find all cases where
> a is a part of b, like this
> select * from mytable where a ilike b;

"a is a part of b" can simply be expressed as:
  position(a in b)>0
and if you need case insensitivity:
  position(upper(a) in upper(b))>0

 Best regards,
--
 Daniel
 PostgreSQL-powered mail user agent and storage:
http://www.manitou-mail.org

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

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: updating to 8.3.x
Следующее
От: Ben
Дата:
Сообщение: Re: updating to 8.3.x