Search Postgresql Archives

Array problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux