MySQL查看指定字符的ascll,MySQL中奇怪的Ascii字符。需要查询将其删除

I am trying to work out how to remove the character  from a mySQL database. It has been converted for me by someone else who hasn't done a great job.

table is ps_product_lang

fields are description AND description_short

I think my query should be

update ps_product_lang set description = replace(description, ‘Â’, ‘’)

But what should I put in where the  is? When I try to do a search it finds every 'a'.

ASCII code 182 = Â ( Letter A with circumflex accent or A-circumflex )

( HTML entity = Â )

Thanks for any advice.

解决方案

CHAR(182) matches the character that is integer code 182.

So you can do this:

update ps_product_lang set description = replace(description, CHAR(182), '')

Documentation for CHAR() is here

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值