只需对字符串执行以下操作:
$yourString = preg_replace ( \'/å/\' , \'a\' , $yourString )
$yourString = preg_replace ( \'/ä/\' , \'a\' , $yourString )
$yourString = preg_replace ( \'/ö/\' , \'o\' , $yourString )
如果只想使用SQL语句,可以尝试以下操作:
REPLACE(REPLACE(REPLACE(StringColumn, \'å\', \'a\') , \'ä\', \'a\') , \'ö\', \'o\')
您可以在选择、更新。。。句子如下:
UPDATE MyTable
SET StringColumn = REPLACE(REPLACE(REPLACE(StringColumn, \'å\', \'a\') , \'ä\', \'a\') , \'ö\', \'o\')