I'm trying to replace a string (" | ") with a carriage return/ line feed. The SQL I'm using is:
UPDATE AML_META_COLUMN_MASTER
SET TRANSFORM_RULE = REGEXP_REPLACE(TRANSFORM_RULE,' | ','0D0A'XC)
WHERE COLUMN_NAME like 'test%';
The query runs and executes on the two rows where this condition is true. However, instead of replacing the string with a carriage return/ line feed the query prepends a carriage return/ line feed to the existing string.
Any thoughts as to what I'm doing wrong and about how I can accomplish what I'm trying to do?
TIA,
Nolan
Forums: