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 -> Re: How to embed a new line character within the text to be inserted into a VARCHAR2 column?

Re: How to embed a new line character within the text to be inserted into a VARCHAR2 column?

From: scjfan122yahoo.com <scjfan12_at_yahoo.com>
Date: 18 Oct 2004 03:56:45 -0700
Message-ID: <1638bead.0410180256.2ab07392@posting.google.com>


Galen,

Thanks for the input. It works great.

Simon

Galen Boyer <galenboyer_at_hotpop.com> wrote in message news:<uy8i8m3yh.fsf_at_standardandpoors.com>...
> On 15 Oct 2004, scjfan12_at_yahoo.com wrote:
> > Hi,
> >
> > I want to insert multiple lines of text as the data for a cell
> > of type VARCHAR2. How do I embed the new line characters
> > within the text in the INSERT/UPDATE statement?
>
> insert into tbl(varcharcolumn) values ('SOMETHING' || chr(10) || 'ELSE');
Received on Mon Oct 18 2004 - 05:56:45 CDT

Original text of this message

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