Re: spring a string to rows (Postgresql 8.4)

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: spring a string to rows (Postgresql 8.4)
Дата
Msg-id kcf957$jpd$1@ger.gmane.org
обсуждение исходный текст
Ответ на spring a string to rows (Postgresql 8.4)  (Emi Lu <emilu@encs.concordia.ca>)
Список pgsql-general
Emi Lu wrote on 07.01.2013 20:44:
> Hello,
>
> Is there a function to split a string to different rows?
>
> For example, t1(id, col1)
> values(1, 'a, b, c');
>
> select id, string_split_to_row(col1, ',');
>
> Return:
> =========
> 1, a
> 1, b
> 1, c
>
> Thanks alot!
> Emi
>
>
>
>

select id, regexp_split_to_table(col1, ',')
from t1;

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

Предыдущее
От: Raymond O'Donnell
Дата:
Сообщение: Re: spring a string to rows (Postgresql 8.4)
Следующее
От: Moshe Jacobson
Дата:
Сообщение: Re: spring a string to rows (Postgresql 8.4)