pg 中字符串中有特殊字符

pg 中字符串中有特殊字符的处理(比如换行符)

imos=# SELECT replace('he
o',E'
','L');
 replace 
---------
 he
o
(1 row)

imos=# SELECT replace('he
imos'# o','
','L');
 replace 
---------
 he     +
 o
(1 row)

imos=# 
imos=# SELECT replace('he
o',E'
','L');
 replace 
---------
 heLo
(1 row)
原文地址:https://www.cnblogs.com/yldf/p/11899964.html