mysql 去除空格

UPDATE czj_share a set a.content=replace(a.content,' ',''),a.title=replace(a.title,' ',''),a.mind=replace(a.mind,' ','')it

UPDATE tablename SET field = REPLACE(REPLACE(field, CHAR(10), ''), CHAR(13), ''); char(10): 換行符 char(13): 回車符table

相關文章
相關標籤/搜索