摘要: --创建一个汉字提取首字母的函数--还存在一点小小的问题(符号?)create function hs(@a varchar(1000)='')returns varchar(1000)asbegindeclare @b varchar(40),@i int,@c varchar(10)declare @d varchar(10),@e varchar(10),@pinyin nvarchar(2000)set @i=1set @pinyin=''while @i=0xB0A1 and @e=0xB0C5 and @e=0xB2C1 and @e=0xB4EE 阅读全文
posted @ 2013-07-24 16:51 子福当自强 阅读(471) 评论(0) 推荐(0) 编辑
摘要: ql获取汉字的拼音首字母if exists (select * from sysobjects where id = object_id(N'[fn_ChineseToSpell]') and xtype in (N'FN', N'IF', N'TF')) www.2cto.com drop function [fn_ChineseToSpell]GO/*创建取拼音首字母函数*/create function [dbo].[fn_ChineseToSpell](@strChinese varchar(500)='' 阅读全文
posted @ 2013-07-24 16:50 子福当自强 阅读(592) 评论(0) 推荐(0) 编辑
悟道