[英]How to remove these "special characters" from MySQL results?
In the database I'm using, some of the pieces are formatted like this在我正在使用的数据库中,一些片段的格式如下
S 1 A 1
Is there any function to remove the characters and format my result as just是否有任何 function 删除字符并将我的结果格式化为
S1A1
to clean this up?清理这个? Notepad++ shows the characters are SOH
(Start of Header). Notepad++ 显示字符是SOH
(标题开头)。 Thanks!!谢谢!!
SOH
is ASCII code 1, so you can use SOH
是 ASCII 码 1,所以你可以使用
REPLACE(columnname, CHAR(1), '')
to remove them from the value.将它们从值中删除。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.