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 -> Inserting Oracle long datatype

Inserting Oracle long datatype

From: <ceri_at_n-ary.com>
Date: 1997/08/23
Message-ID: <872353364.14498@dejanews.com>#1/1

Hi,

I am trying to add a record into a table containing a long datatype,

I concatenate a string together it is 8000 chars long in variable named b

insert statement is this,

 insert into literature_page values ('" + litId + "', '" + pgId

                                    + "', '" + b + "'"

and I get the error :
oracle.jdbc.oci7.OCIDBException: ORA-01704: string literal too long

I thought I could add up to 2 gig????

What am I doing wrong?

Thanks

Ceri

-------------------==== Posted via Deja News ====-----------------------
      http://www.dejanews.com/     Search, Read, Post to Usenet
Received on Sat Aug 23 1997 - 00:00:00 CDT

Original text of this message

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