本文介绍了替换 SQL 2000 中的特殊字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何替换数据文件中的特殊字符(特殊字符,例如项目符号、百分号、连字符等)?
how can I replace special characters in my data files (special characters such as bullet points, percent sign, hyphen etc) ?
谢谢
推荐答案
您可以使用 T-SQL 替换:
REPLACE(FieldWithStars,'*','STAR')
对于多个替换,您可以使用级联 REPLACE 语句.
For more than one substitution you could use cascading REPLACE statements.
虽然对项目符号一无所知 - 但您应该能够替换任何为该特定字符寻找正确转义序列的内容.
No clue though about bullet points - but you should be able to replace anything looking for the right escape sequence for that particular character.
这篇关于替换 SQL 2000 中的特殊字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!