Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> carriage return / line feed's in text or varchar fields

carriage return / line feed's in text or varchar fields

From: Andreas Schlegel <schlegelaw_at_epost.de>
Date: Sat, 08 Mar 2003 19:36:02 +0100
Message-ID: <3E6A3812.7040508@epost.de>


Hi,

I am writing some scripts which have to update data in an Oracle 8.1.6 database.

The update commands are send by sqlplus
But I am unable to update text or varchar fields when the string contains carriage return / line feed characters, because the CRLF's get interpreted as part of the SQL statement (sp2-0734) instead of part of the character string to be inserted. How do I get CRLF's into a text or varchar field in Oracle?

Thanks,
Andreas

i.e.:

UPDATE contact SET field1='Hi,

this is an update to test CR

Greetings' WHERE ckey=4711; Received on Sat Mar 08 2003 - 12:36:02 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US