Re: Split_part on a CR - Mailing list pgsql-general

From David Johnston
Subject Re: Split_part on a CR
Date
Msg-id 000901cdc691$20866a90$61933fb0$@yahoo.com
Whole thread Raw
In response to Split_part on a CR  (Jeff Ross <jross@wykids.org>)
List pgsql-general
> -----Original Message-----
> From: pgsql-general-owner@postgresql.org [mailto:pgsql-general-
> owner@postgresql.org] On Behalf Of Jeff Ross
> Sent: Monday, November 19, 2012 2:49 PM
> To: pgsql-general@postgresql.org
> Subject: [GENERAL] Split_part on a CR
>
> Hi,
>
> I'm having a hard time figuring out how to use split_part with a carriage
> return (hex 0a) as the delimiter.
>
> Would someone please offer me a clue?
>
> Thanks!
>
> Jeff Ross
>

SELECT split_part(E'a\nb\nc', E'\n', 2) --  == 'b'

David J.




pgsql-general by date:

Previous
From: Gary Chambers
Date:
Subject: Re: Split_part on a CR
Next
From: Jeff Ross
Date:
Subject: Re: Split_part on a CR