Coalesce 2 Arrays

Поиск
Список
Период
Сортировка
От Alex Magnum
Тема Coalesce 2 Arrays
Дата
Msg-id CA+cR4zeFoa6GS8t6nYPfqFSDc=O3s7Ep5kENOk4c+-dyLKqjFw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Coalesce 2 Arrays  (Rob Sargent <robjsargent@gmail.com>)
Список pgsql-general
Hi,
I have two arrays which I need to combine based on the individual values;
i could do a coalesce for each field but was wondering if there is an easier way

array_a{a,   null,c,   d,null,f,null}  primary
array_b{null,2   ,null,4,5   ,6,null}  secondary
 
result {a,   2,   c,   d,5,   f,null)

Any advice would be appreciated

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

Предыдущее
От: Kevin Brannen
Дата:
Сообщение: RE: [EXT EMAIL] Re: First Time Starting Up PostgreSQL and HavingProblems
Следующее
От: Rob Sargent
Дата:
Сообщение: Re: Coalesce 2 Arrays