Re: [GENERAL] remove embedded carriage returns

2007-01-11 Thread Kj
Jonathan Hedstrom wrote: > [EMAIL PROTECTED] 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,

Re: [GENERAL] remove embedded carriage returns

2007-01-11 Thread chwy_nougat
[EMAIL PROTECTED] wrote: > Outputting a SELECT statement's results to ascii file showed me a table > with a bunch of embedded carriage return characters in the values. I > want to remove the embedded returns, so I read the documentation and > tried a few variations on "SELECT replace(columname, 'c

Re: [GENERAL] remove embedded carriage returns

2007-01-10 Thread Jonathan Hedstrom
[EMAIL PROTECTED] 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

[GENERAL] remove embedded carriage returns

2007-01-10 Thread chwy_nougat
Outputting a SELECT statement's results to ascii file showed me a table with a bunch of embedded carriage return characters in the values. I want to remove the embedded returns, so I read the documentation and tried a few variations on "SELECT replace(columname, 'chr(13)','') from tablename" with n