Check out example codes for "replace \n sql". It will help you in understanding the concepts better.

Code Example 1

SELECT REPLACE(REPLACE(@str, CHAR(13), ''), CHAR(10), '')

Learn ReactJs, React Native from akashmittal.com