Array problem

Поиск
Список
Период
Сортировка
От Panagiotis Papadakos
Тема Array problem
Дата
Msg-id Pine.LNX.4.64.0806261029000.30666@kiwi.csd.uoc.gr
обсуждение исходный текст
Список pgsql-general
Hi everybody.

I have created a table containing an array of points
(each point exists only once in the array).

CREATE TABLE lala (id INT NOT NULL, occur point[] not NULL, PRIMARY
KEY(id));

I am trying to find a way to get the position of array elements
that have a specific x coordinate.

How can I do it?

P.S.

select * from lala where point'(289,0)' ?| any (occur);
returns the whole tuples that have points with x=289 in their array.

Thanks in advance.

     Panagiotis Papadakos

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

Предыдущее
От: Rodrigo Gonzalez
Дата:
Сообщение: Re: ERROR: could not open relation with OID 2836
Следующее
От: Dean Rasheed
Дата:
Сообщение: Re: what are rules for?