搜索并替换不需要的字符 [英] Search and replace unwanted character

查看:80
本文介绍了搜索并替换不需要的字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在xP平台上使用MySQL 5.0

我的表格中有一个longtext列。不知何故,一个字符已被插入(或转换)到一些记录中,其中的是回车符/行返回字符串。我应该以十六进制格式0D 0A。但我所拥有的是AC 0A。


有没有办法搜索AC并用0D替换它?

Using MySQL 5.0 on a xP platform

I have a longtext column in my table. Somehow a character has been inserted (or transformed) into some of the records where the carriage/line return strings should be. I should have in hex format 0D 0A. But instead what I have is AC 0A.

Is there a way to search for the AC and replace it with 0D?

推荐答案

0xAC0D是你在MySQL中表示字符串的方式。
0xAC0D is how you would represent the string in MySQL.


你是说select语句看起来像这样

Are you saying the select statement would look like this

展开 < span class =codeDivider> | 选择 | Wrap | Line数字


这是写它的正确方法吗?

Is this the correct way to write it?

展开 | 选择 | Wrap | 行号


这篇关于搜索并替换不需要的字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆