MySQL 实现字符串换行

target_describe字段值中包含  ;【 这两个特殊的字符 ,想要在字符之间加换行 需要插入CHAR(10) 

 

UPDATE ew_pm_project_red_detail SET target_describe=REPLACE(target_describe,';【',CONCAT('',CHAR(10),''))

 

UPDATE ew_pm_project_red_detail SET target_describe=REPLACE(target_describe,';【',CONCAT(';',CHAR(10),'【'))

posted on 2018-02-01 09:16  Jade_K  阅读(15879)  评论(0编辑  收藏  举报

导航