25 Mar 19 ·  nVector in sql ·        Bookmark ·  Report ·  More actions.. Lock comments ·  Pin thread

How to remove newline / special character from a column in Snowflake Datawarehouse

REPLACE - Removes all occurrences of a specified string, and optionally replaces them with another string. 

For example, to remove a newline character \n, use chr(10) as it represents a newline character: 


REPLACE( <subject> , <pattern> [ , <replacement> ] )


select replace(replace (string_col, chr(10), chr(13)) from your-table-name;

Result: data without the newline character


posted on 25 Mar 19

Enjoy great content like this and a lot more !

Signup for a free account to write a post / comment / upvote posts. Its simple and takes less than 5 seconds