How to split an array-column?

Поиск
Список
Период
Сортировка
От Andreas
Тема How to split an array-column?
Дата
Msg-id 51476751.1040902@gmx.net
обсуждение исходный текст
Ответы Re: How to split an array-column?  (Venky Kandaswamy <venky@adchemy.com>)
Список pgsql-sql
Hi,

I've got a table to import from csv that has an array-column like:

import ( id, array_col, ... )

Those arrays look like ( 42,  ";4941;4931;4932", ... )
They can have 0 or any number of elements separated by ;

So I'd need a result like this:
42, 4941
42, 4931
42, 4932

How would I get this?



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

Предыдущее
От: Claudio Adriano Guarracino
Дата:
Сообщение: link
Следующее
От: Venky Kandaswamy
Дата:
Сообщение: Re: How to split an array-column?