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

Поиск
Список
Период
Сортировка
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

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

Предыдущее
От: tango ward
Дата:
Сообщение: Insert data if it is not existing
Следующее
От: Steven Winfield
Дата:
Сообщение: RE: Insert data if it is not existing