时间:2021-07-01 10:21:17 帮助过:11人阅读
mysql 通过Excel导入导出数据时,有可能会添加上不需要的空格,回车字符。
UPDATE user SET user_name = TRIM(user_name);
UPDATE user SET user_name = REPLACE(REPLACE(user_name,CHAR(10),‘‘), CHAR(13),‘‘);
UPDATE user SET user_name = REPLACE(user_name, ‘\n‘,‘‘);
UPDATE user SET user_name = REPLACE(user_name, ‘\r\n‘,‘‘);
mysql - 去除空格回车符
标签:mysql excel