Re: Check if column is substring of another column

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Check if column is substring of another column
Дата
Msg-id 49782520.2000305@archonet.com
обсуждение исходный текст
Ответ на Check if column is substring of another column  (Keaton Adams <kadams@mxlogic.com>)
Список pgsql-general
Keaton Adams wrote:
> PostgreSQL 8.1 question:
>
> I have two columns.
> policyNumber contains a 12-13 varchar string
> AllPolicyNumbersIncluded contains one or more 12-13 varchar strings (policy nums) separated by commas

Rodrigo has given a direct answer, but you might want to consider either
an array of text for AllPolicyNumbersIncluded or better still a join to
another table. That will make your queries more natural.

--
  Richard Huxton
  Archonet Ltd

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

Предыдущее
От: Abdul Rahman
Дата:
Сообщение: Re: autovacuum daemon
Следующее
От: Igor Katson
Дата:
Сообщение: Re: [Plproxy-users] A complex plproxy query