mysql 去掉字段中的空格

mysql 去掉字段中的空格UPDATE chengyu_mis SET title = TRIM(BOTH ' ' FROM REPLACE(REPLACE(title, ' ', ''), '\n', ''));
阅读全文

mysql 去掉字段特定字符

mysql 去掉字段特定字符UPDATE chengyu_mis SET title = REPLACE(title, '谜题:', '') where id=2;
阅读全文