access sub elements using any()

Поиск
Список
Период
Сортировка
От Rob Sargent
Тема access sub elements using any()
Дата
Msg-id 5fb866d1-8d2f-5118-18e2-9bbf227cbf1a@gmail.com
обсуждение исходный текст
Ответы Re: access sub elements using any()
Re: access sub elements using any()
Список pgsql-sql
Given an array of arrays ( e.g. v = {{1,'a'},{2,'b'},{3,'c'},{2,'d'}} ) is it possible, in plain sql, to access the first element of the listed arrays using the IN function?  Say I wanted just those with 2 as first element.  "where 2 = any(v[1])" does not work and not sure it's supported.   And I cannot craft a lhs to fussy-match each of the elements in v.  Can this be done?

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

Предыдущее
От: Steve Midgley
Дата:
Сообщение: Re: select only 1 pair
Следующее
От: "Torsten Grust"
Дата:
Сообщение: Re: access sub elements using any()