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!

How to [get CLOB -> translate -> update CLOB] ?

882532Apr 26 2012 — edited Apr 27 2012
Hi all,

I have CLOB column szb_szablon_clob which about 200 rows

I want use oracle translate to change special characters (for example 'Ś' to '¦')

No problem if szb_szablon_clob have 4000 (or less) chars because then i use below code

update vbt_szablony
set szb_szablon_clob = translate(DBMS_LOB.SUBSTR((select szb_szablon_clob from vbt_szablony where szb_nazwa = 'FTMP118000'),4000,1),'¦', 'Ś')
where szb_nazwa = 'FTMP118000';

But how can use it when more than 4000 ?

I try combinations with cursors and DBMS_LOB.SUBSTR in loop but without effects..

Can you give me some idea or send to a similar problem in forum ?

Thanks for you time

Edited by: Ndejo on 2012-04-26 11:36
This post has been answered by AlexAnd on Apr 26 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 25 2012
Added on Apr 26 2012
4 comments
835 views