Re: A few questions about carriage returns (\r)

From: Jon Lapham <lapham(at)jandr(dot)org>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: A few questions about carriage returns (\r)
Date: 2006-06-15 15:35:02
Message-ID: 44917E26.8020603@jandr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Martijn van Oosterhout wrote:
> # select replace('aac','a','b');
> replace
> ---------
> bbc
> (1 row)
>
> So replace(str, '\r', '\\r') should work

Perfect, thanks.

I guess I'm blind, I didn't see this in the docs. :)

-Jon

--
-**-*-*---*-*---*-*---*-----*-*-----*---*-*---*-----*-----*-*-----*---
Jon Lapham <lapham(at)jandr(dot)org> Rio de Janeiro, Brasil
Personal: http://www.jandr.org/
***-*--*----*-------*------------*--------------------*---------------

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Nis Jorgensen 2006-06-15 15:36:34 Re: A few questions about carriage returns (\r)
Previous Message Martijn van Oosterhout 2006-06-15 15:19:11 Re: A few questions about carriage returns (\r)