Home » SQL & PL/SQL » SQL & PL/SQL » inserting value into LONG column
inserting value into LONG column [message #38974] Mon, 03 June 2002 01:17 Go to next message
Davide Cerri
Messages: 1
Registered: June 2002
Junior Member
Hi,
I'am tryng to insert data into a LONG column using a PL/SQL stored procedure.
The stored procedure code is something like:
---------------------------------------
CREATE OR REPLACE PROCEDURE myinsert (
parameter1 in VARCHAR2,
...
parameter10 in VARCHAR2)

AS

blk LONG;

BEGIN

blk := parameter 1||..||parameter10;
update mytable set long_column = blk
END;
/
-------------------------------------
I undestand that the problem is that a LONG PL/SQL variale can stores up to 32k bytes (at run time I have the following error:"ORA-06502: PL/SQL: numeric or value error") and the concatenation operator works just with varcha2.
How can I use the procedure to store long values ?
Thanks in advance for any suggestionù
Davide Cerri
Re: inserting value into LONG column [message #38989 is a reply to message #38974] Tue, 04 June 2002 10:30 Go to previous message
andrew again
Messages: 2577
Registered: March 2000
Senior Member
LONG is very outdated - try to convert to CLOB if you can

http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:55212348054
Previous Topic: Compare table from two Instances
Next Topic: PL/SQL Error
Goto Forum:
  


Current Time: Wed Apr 24 17:32:36 CDT 2024