pg 中字符串中有特殊字符

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

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

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

imos=# 
imos=# SELECT replace('he
o',E'\n','L');
 replace 
---------
 heLo
(1 row)
posted @ 2019-08-21 15:52  岳麓丹枫  阅读(1057)  评论(0编辑  收藏  举报