Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove All carriage returns and line feeds from a column

Status
Not open for further replies.

ccotton333

Programmer
Oct 30, 2007
1
US
Hey Folks,

I'm trying to remove all carriage return and line feeds from a column in teradata V2R6. I'm using the below syntax:

TRIM(BOTH '0A'XC FROM TRIM(BOTH '0D'XC FROM field_name))

However, this doesn't seem to remove the characters as it should. I have also tried:

TRIM(BOTH '0D'XC FROM TRIM(BOTH '0A'XC FROM field_name))

This returns the same results. Does anyone know how to make this work properly?
 
Can you copy and paste the data in your column, so that we can see how the data looks like.

Cheers,
Pramod
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top