Re: please help me with arrays

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: please help me with arrays
Дата
Msg-id Pine.LNX.4.21.0010230020130.25851-100000@peter.localdomain
обсуждение исходный текст
Ответ на please help me with arrays  (Bo Berkhaut <bo@syntext.com>)
Ответы Strange query results with dates  (Igor Khanjine <igor_kh@mailru.com>)
Список pgsql-general
Bo Berkhaut writes:

> CREATE TABLE example (name text, slots text[]);
>
> I want to be able to select, for example, all rows such that an element
> of example.slots exists equal to example.name.

There are some operators for this in contrib/array.

However, I'd say that if you're trying to do this you better redesign your
database schema to make "slots" a separate table.

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Weird effects using BLOBs from libpq
Следующее
От: Sungchul Park
Дата:
Сообщение: Re: duplicate key ? (fwd)