Home » RDBMS Server » Server Administration » long datatype
long datatype [message #52114] Wed, 03 July 2002 03:05 Go to next message
Robert
Messages: 43
Registered: August 2000
Member
Hi all,

I like to insert a long string in a column with long datatype. When I insert it directly, I got the error message of ORA-01704: string literal too long. Then I try to use concatenated string or bind variable to insert, I got the error message of Input is too long (> 2499 characters).

If this cant be handled by long, would you suggest outer solution?

Thanks in advance.

Robert
Re: long datatype [message #52119 is a reply to message #52114] Wed, 03 July 2002 06:57 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
Use a bind variable instead of a string literal.
I belevie,this can only be done with the precompilers or OCI.
Re: long datatype [message #52125 is a reply to message #52119] Wed, 03 July 2002 18:16 Go to previous message
Robert
Messages: 43
Registered: August 2000
Member
In fact, I have tried to use PL/SQL

declare insert_text long := '<very long string>'

begin
execute immediate 'insert into my_table
(subject_id, body) values
(200, :insert_text_bv)'
using insert_text;
end;
/

But I still got error of Input is too long (> 2499 characters).
Previous Topic: checkpoint not complete reg.
Next Topic: Improve Sort Perf. Through SORT_AREA_SIZE
Goto Forum:
  


Current Time: Tue Sep 17 20:36:31 CDT 2024