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

Home -> Community -> Usenet -> c.d.o.tools -> Re: ORA-01704: string literal too long

Re: ORA-01704: string literal too long

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Mon, 04 Dec 2000 19:49:11 +0800
Message-ID: <3A2B84B7.6A7F@yahoo.com>

Adrian Randle wrote:
>
> Hi,
>
> Anyone any idea how to insert > 2000 chars into an Oracle LONG datatype,
> without getting ORA-01704: string literal too long.
> Field should hold up to 2 Gig!
>
> Any help greatly appreciated..
>
> Thanks

Using PL/SQL will let you get up to 32767 bytes ie

declare
x varchar2(32767)
begin
 insert into ... values (x)
end;

after that, you're typically looking at something in C - one of the reasons Oracle went with the better LOB's in 8.0+

HTH

-- 
===========================================
Connor McDonald
http://www.oracledba.co.uk (mirrored at
http://www.oradba.freeserve.co.uk)

"Some days you're the pigeon, some days you're the statue"
Received on Mon Dec 04 2000 - 05:49:11 CST

Original text of this message

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