Search Postgresql Archives

Re: remove embedded carriage returns

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jonathan Hedstrom wrote:
> chwy_nougat@xxxxxxxxx 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@xxxxxxxx
> 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.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux