首页 > 技术文章 > mysql 字段前后去空格

caer 2017-04-27 11:11 原文

UPDATE t_key_word SET key_word = REPLACE(REPLACE(key_word, CHAR(10), ''), CHAR(13), '')

 

推荐阅读