sql 中英文标点符号转换

复制代码
 1 create function fn_ConvertPuntuation(@c3 nvarchar(3000))
 2 returns nvarchar(3000)
 3 as
 4 begin
 5     select @c3=stuff(@c3,number,1,substring('~!@#$%^&*()_+;'':"",./<>?[]{}',
 6     charindex(substring(@c3,number,1),'~!◎#¥%…※×()_+;‘:“”,。、《》?【】『』'),1))
 7     from master..spt_values 
 8     where type='p' and number between 1 and len(@c3) 
 9     and charindex(substring(@c3,number,1),'~!◎#¥%…※×()_+;‘:“”,。、《》?【】『』')>0
10     set @c3=replace(@c3,'^^','^')
11     return @c3
12 end
复制代码

 

posted @   每天进步多一点  阅读(278)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek “源神”启动!「GitHub 热点速览」
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· C# 集成 DeepSeek 模型实现 AI 私有化(本地部署与 API 调用教程)
· DeepSeek R1 简明指南:架构、训练、本地部署及硬件要求
· 2 本地部署DeepSeek模型构建本地知识库+联网搜索详细步骤
历史上的今天:
2022-02-27 H5调用手机摄像头和相册
2022-02-27 jquery监听页面滚动条滚动事件
2021-02-27 C# 打印PDF文档的10种方法
2019-02-27 Func与Action
2019-02-27 JavaScript编码规范
点击右上角即可分享
微信分享提示