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

Home -> Community -> Usenet -> c.d.o.server -> Re: INSERT LONG problems

Re: INSERT LONG problems

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: Thu, 06 Jan 2000 14:03:04 -0500
Message-ID: <clp97s8bo0vqt2h10bafoq58qod424g98r@4ax.com>


A copy of this was sent to nzjnd4_at_my-deja.com (if that email address didn't require changing) On Thu, 06 Jan 2000 18:10:56 GMT, you wrote:

>Hello all,
>
>This sounds like a newbie question:) How do you insert a large amount
>of text into a LONG column? Oracle keeps giving complaining the insert
>string is two long. The Oracle reference says this:
>
>ORA-01704: string literal too long
>Cause: A quoted string specified as a constant was too long.
>
>Action: Quoted strings may not contain more than 2000 characters.
>
>Then how in the heck do you load data into a column that's supposed to
>hold 2GB or char data???!!!
>

bind variables -- not with string constants. At http://osi.oracle.com/~tkyte/Misc/LargeStrings.html you can find a trick to get upto 32k without a bind variable (but it uses a bind variable.... in plsql).

>Thanks to all!
>--Dan
>
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.

--
See http://osi.oracle.com/~tkyte/ for my columns 'Digging-in to Oracle8i'... Current article is "Part I of V, Autonomous Transactions" updated June 21'st  

Thomas Kyte                   tkyte_at_us.oracle.com
Oracle Service Industries     Reston, VA   USA

Opinions are mine and do not necessarily reflect those of Oracle Corporation Received on Thu Jan 06 2000 - 13:03:04 CST

Original text of this message

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