spring a string to rows (Postgresql 8.4) - Mailing list pgsql-general

From Emi Lu
Subject spring a string to rows (Postgresql 8.4)
Date
Msg-id 50EB2581.6000707@encs.concordia.ca
Whole thread Raw
Responses Re: spring a string to rows (Postgresql 8.4)  (Raymond O'Donnell <rod@iol.ie>)
Re: spring a string to rows (Postgresql 8.4)  (Thomas Kellerer <spam_eater@gmx.net>)
Re: spring a string to rows (Postgresql 8.4)  (Moshe Jacobson <moshe@neadwerx.com>)
List pgsql-general
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-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: lc_time not working?
Next
From: Raymond O'Donnell
Date:
Subject: Re: spring a string to rows (Postgresql 8.4)