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!

removing carriage returns

Status
Not open for further replies.

RycherX

Programmer
Mar 18, 2002
20
0
0
US
Can I through a select statement takeout all the carriage returns within a field when I retrieve it?
 
Rycher,

I'll bet we can, but we need an example of your INPUT and the OUTPUT you hope to see. Could you please post a sample or two?

[santa]Mufasa
(aka Dave of Sandy, Utah, USA @ 18:26 (24Aug04) UTC (aka "GMT" and "Zulu"), 11:26 (24Aug04) Mountain Time)
 
Hope I'm not treading on your toes here, Santa. [thumbsup]

The carriage return character in Oracle is Chr(10), so you could replace all CRs with spaces:

[tt]SELECT Replace(<your_string>,Chr(10),' ')
FROM <your_table>[/tt]
 
Actually carriage return (CR) is CHR(13). CHR(10) is line feed (LF). In Windows a combination CHR(13)||CHR(10) is used as line separator, in Unix - only CHR(10).

Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top