Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

UPDATE column with string greater then 4000 Characters in 8i?

390534Jul 24 2004 — edited Jul 24 2004
Anyone,

I am trying to concatenate a string together in a stored proc that is longer then 4000 charcaters. The value is going into a LONG column so the col will take it but the proc itself will not allow me to put the string together.

I stopped using a var and instead try doing concat inside the UPDATE satement and I still get the value to large error ORA-01489.

Can anyone tell how to do this? Here is my current statement:
SELECT LDTEXT
       INTO var_LDTEXT
       FROM MAXIMO.LONGDESCRIPTION
       WHERE LDKEY = var_ldkey_new ;

UPDATE MAXIMO.LONGDESCRIPTION
SET LDTEXT = (SELECT var_LDTEXT || rec.LDTEXT FROM DUAL)
WHERE LDKEY = var_ldkey_new 
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 21 2004
Added on Jul 24 2004
3 comments
370 views