0

we are having a database with utf8 as charset. now in one table we are having a value like 'HERBES-Herbe à poux' . now we have to convert it into 'HERBES-Herbe a poux' . i.e à-->a. We cannot have a replace function since the values are dynamic.

Please help us.

4

1 回答 1

3

对你来说,什么是“特殊人物”?US7ASCII 字符集之外的任何内容?

您可能会使用该CONVERT功能

SELECT convert( <<your string>>, 'US7ASCII' )
  FROM table_name

假设存在特定字符到 US7ASCII 字符集的映射,该映射将用于替换该字符。如果没有定义映射,则该字符将被默认替换字符替换,即问号“?”。

于 2012-10-17T15:10:07.787 回答