if exists (select 1
from sysobjects
where id = object_id('fn_GetSpell')
and type in ('IF', 'FN', 'TF'))
drop function fn_GetSpell
go
CREATE function fn_GetSpell(@str nvarchar(4000))
returns nvarchar(4000)
as
begin
declare @word nchar(1),@PY nvarchar(4000)
set @PY=''
while len(@str)>0
begin
set @word=left(@str,1)
--如果非汉字字符,返回原字符
SQL 中文得到拼音大写首字母的方法
最新推荐文章于 2023-09-02 15:24:46 发布