2009年6月8日
摘要: collate chinese_prc_ci_as null 是什么意思我们在create table时经常会碰到这样的语句,例如:CorpName nvarchar(10) collate chinese_prc_ci_as null,那它到底是什么意思呢?不妨看看下面:语法COLLATE < collation_name >< collation_name > ::= { Windows_collation_name } | { SQL_collation_name }参数collation_name是应用于表达式、列定义或数据库定义的排序规则的名称。collati 阅读全文
posted @ 2009-06-08 16:38 叮叮猫的编程世界 阅读(284) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using System.Text.RegularExpressions;using System.Web;namespace CrazyCoder.Common{/// <summary> /// 汉字转拼音类 /// by http://www.crazycoder.cn /// build Date 20030610 /// </summary> public class CrazyCoderPinyin { ... 阅读全文
posted @ 2009-06-08 16:31 叮叮猫的编程世界 阅读(134) 评论(0) 推荐(0) 编辑
摘要: create function fun_getPY(@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)--截取一个字符串出来 --如果非汉字字符,返回原字符 set @PY=@PY+(case when unicode(@word) between 19968 and 19968+20901 then (... 阅读全文
posted @ 2009-06-08 16:24 叮叮猫的编程世界 阅读(211) 评论(0) 推荐(0) 编辑