I was wondering what is the appropriate way to call the REPLACE function described here, since I've created the statement below to test it but I'm getting an error:
DECLARE
templateMessage3 VARCHAR2(50);
BEGIN
templateMessage3 := 'Dear Mr./Madam FNAME';
replace(templateMessage3, 'FNAME', 'Lilly');
DBMS_OUTPUT.PUT_LINE(templateMessage3);
END;
/
Error:
PLS-00221: 'REPLACE' is not a procedure or is undefined
I am using Oracle 11g web interface.