从所有行中删除国际字母表的简便方法?
问题描述:
是否有一种简单的方法可以遍历所有行并从表格中的列中删除所有
国际字母字符,例如
删除德语变音符号ü ;并将它们转换为简单的u。
谢谢,
lq
Is there an easy way to loop through all rows and remove all
international alphabet characters from a column in a table, for example
remove German umlauts "ü" and convert them to a simple "u".
Thanks,
lq
答
请参阅以下主题:
http://groups-beta.google.com/group/...45abaa5cf410b8
Razvan
See the following thread:
http://groups-beta.google.com/group/...45abaa5cf410b8
Razvan
OK<谢谢你。如何在第一个
的地方保留这些角色?
OK< thanks on that. How about keeping out these characters in the first
place?
laurenq uantrell(la ******** *****@hotmail.com)写道:
laurenq uantrell (la*************@hotmail.com) writes:
是否有一种简单的方法可以循环遍历所有行并从表中的列中删除所有
国际字母字符,例如
删除德语变音符号ü并将它们转换为简单的u。
Is there an easy way to loop through all rows and remove all
international alphabet characters from a column in a table, for example
remove German umlauts "ü" and convert them to a simple "u".
这是一个比链接Razvan foun更智能的版本
创建表格T(
s nvarchar(20)
)
插入T值(''créée'')
插入T值(''patédefois gras'')
插入T值(''HéLèNEMELAN?ON'')
更新T
set s = convert(varchar(20),s)COLLATE Cyrillic_General_CS_AS
go
select * from T
go
drop table T
这假设您的数据只有拉丁字符。
-
Erland Sommarskog,SQL Server MVP, es****@sommarskog.se
SQL Server SP3联机丛书
http://www.microsoft.com/sql/techinf...2000/books .asp