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),'【'))spa

相关文章
相关标签/搜索