ORACLE - PL/SQLsubstituir texto (String Replace)

November 13, 2013

Para substituir texto em PL/SQL es necesario usar la funcion REPLACE

Atención: REPLACE devuelve la string con la substituicion echa, por lo tanto el resultado de su llamada debera ser guardado en una variable:


text_aux          varchar2(1024);
text                 clob;

text := text || replace(text_aux, ' xmlns=’ || chr(34) || ‘http://www.aaa.com’ || chr(34), ‘');

(En este caso chr(34) es el carácter de escape para: “)