Re: regarding contains operator

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: regarding contains operator
Дата
Msg-id 14602.1141832096@sss.pgh.pa.us
обсуждение исходный текст
Ответ на regarding contains operator  ("surabhi.ahuja" <surabhi.ahuja@iiitb.ac.in>)
Список pgsql-general
"surabhi.ahuja" <surabhi.ahuja@iiitb.ac.in> writes:
>  i have a field whose type is varchar(16)
> and the field is multivalued, in the sense it is of the form

> abc\def\tez
> (i.e. backslash separed values)

To be blunt, this is a really poorly-chosen data representation.
To point out just one problem, backslashes in the values will cause
you headaches.

Perhaps an array field would serve you better.  Then the specific
operation you are considering would be "foo = ANY(arrayfield)".

            regards, tom lane

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

Предыдущее
От: Michael Glaesemann
Дата:
Сообщение: Re: database/schema level triggers?
Следующее
От: "Rodrigo Sakai"
Дата:
Сообщение: Re: Temporal Databases