Hi all,
I am trying to write a SQL to replace a pattern of a string with ''. In the below example my input string is of 5 lines and I want to replace all occurrences of '@'||%||'V$TEMP'. I cant user REGEXP_REPLACE as the client is using 8i
SELECT REPLACE('@1:this is a 1st line'||CHR(10)||
'@1:V$TEMP'||CHR(10)||
'@1:this is 3rd line'||CHR(10)||
'@2:V$TEMP'||CHR(10)||
'@1:this is 5rd line', '@'||'%'||':V$TEMP', '') tt
FROM dual;
Any ideas are greatly appreciated.
Thanks in advance.
Edited by: Reddi on Nov 18, 2008 3:45 PM