Split a string to rows?

Поиск
Список
Период
Сортировка
От Emi Lu
Тема Split a string to rows?
Дата
Msg-id 50EB25B5.5020502@encs.concordia.ca
обсуждение исходный текст
Ответы Re: Split a string to rows?
Re: Split a string to rows?
Список pgsql-sql
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




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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Query execution based on a condition
Следующее
От: Steve Crawford
Дата:
Сообщение: Re: Split a string to rows?