汉字转拼音函数

上传人:xh****66 文档编号:57141473 上传时间:2018-10-19 格式:DOCX 页数:11 大小:49.13KB
返回 下载 相关 举报
汉字转拼音函数_第1页
第1页 / 共11页
汉字转拼音函数_第2页
第2页 / 共11页
汉字转拼音函数_第3页
第3页 / 共11页
汉字转拼音函数_第4页
第4页 / 共11页
汉字转拼音函数_第5页
第5页 / 共11页
点击查看更多>>
资源描述

《汉字转拼音函数》由会员分享,可在线阅读,更多相关《汉字转拼音函数(11页珍藏版)》请在金锄头文库上搜索。

-创建函数IF OBJECT_ID(fn_GetPinyin) IS NOT NULL DROP FUNCTION fn_GetPinyin GO create function dbo.fn_GetPinyin(words nvarchar(2000) returns varchar(8000) as begin declare word nchar(1) declare pinyin varchar(8000) declare i int declare words_len int declare unicode int set i = 1 set words = ltrim(rtrim(words) set words_len = len(words) while (i = word collate Chinese_PRC_CS_AS_KS_WS order by word collate Chinese_PRC_CS_AS_KS_WS ASC) else word end) set i = i + 1 end return pinyin END GO

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 生活休闲 > 社会民生

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号