摘要:
--创建函数IF OBJECT_ID('[fn_GetPinyin]') IS NOT NULLDROP FUNCTION [fn_GetPinyin]GOcreate function [dbo].[fn_GetPinyin](@words nvarchar(2000))returns varchar(8000)asbegin declare @word nchar(1) declare @pinyin varchar(8000) declare @i int declare @words_len int declare @unicode int set @i = 1 set 阅读全文
摘要:
/* 根据汉字获取全拼 1.生成所有读音临时表 2.根据Chinese_PRC_CS_AS_KS_WS 排序获取读音 */ alter function f_GetPy(@str varchar(100)) returns varchar(8000) as begin declare @re varchar(8000) –生成临时表 declare @t table(chr nchar(1) collate Chinese_PRC_CS_AS_KS_WS,py nvarchar(20)) insert into @t select’吖’,'a’ insert into @t selec 阅读全文