Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Replace with carriage return/ line feed - forum topic by Nolan Madson

$
0
0

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: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>