Re: remove embedded carriage returns

From: "Kj" <kurtisj(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: remove embedded carriage returns
Date: 2007-01-10 22:33:33
Message-ID: 1168468412.876406.153870@p59g2000hsd.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Jonathan Hedstrom wrote:
> chwy_nougat(at)yahoo(dot)com wrote:
> > "SELECT replace(columname, 'chr(13)','') from tablename"
>
> Try using chr(13) without the single quotes:
>
> SELECT replace(columname, chr(13),'') from tablename
>
> or you could use '\r' to get the character:
>
> SELECT replace(columname, E'\r','') from tablename
>
>
> -Jonathan
>
> begin:vcard
> fn:Jonathan Hedstrom
> n:Hedstrom;Jonathan
> org:Downtown Emergency Service Center;Information Services
> email;internet:jhedstrom(at)desc(dot)org
> title:Data Systems Administrator
> tel;work:(206) 464-1570 ext. 3014
> version:2.1
> end:vcard
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster

Thanks so much! I am a psql noob and really appreciate your response
and help.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message garrettmoore@gmail.com 2007-01-10 22:51:01 Re: Trying to load MySQL data
Previous Message Richard Broersma Jr 2007-01-10 22:31:41 Re: Problems With VIEWS