Search Postgresql Archives

How do I select composite array element that satisfy specific conditions.

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

 



Hi, say if I have composite type and table 

create type A as(
     x float8,
     y float8
);

create table B(
     Ay A[]
);

insert into B
values(array[
     (1,2)::A,
     (3,4)::A]
);

How could I select the element of Ay that satisfy x=3??

Thank you so much!!

Shore

[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