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

相關文章
相關標籤/搜索