Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

SQLºº×Öת»»Æ´Òô

/*
¸ù¾Ýºº×Ö»ñȡȫƴ
1.Éú³ÉËùÓжÁÒôÁÙʱ±í
2.¸ù¾ÝChinese_PRC_CS_AS_KS_WS ÅÅÐò»ñÈ¡¶ÁÒô
*/
Create function ChineseSpell(@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 select'厑','aes'
insert into @t select'°¥','ai'
insert into @t select'°²','an'
insert into @t select'°¹','ang'
insert into @t select'°¼','ao'
insert into @t select'°Ë','ba'
insert into @t select'挀','bai'
insert into @t select'兡','baike'
insert into @t select'瓸','baiwa'
insert into @t select'°â','ban'
insert into @t select'°î','bang'
insert into @t select'Ùè','bao'
insert into @t select'萡','be'
insert into @t select'Úé','bei'
insert into @t select'±¼','ben'
insert into @t select'伻','beng'
insert into @t select'皀','bi'
insert into @t select'±ß','bian'
insert into @t select'辪','uu'
insert into @t select'ìá','biao'
insert into @t select'±ï','bie'
insert into @t select'汃','bin'
insert into @t select'Ùû','bing'
insert into @t select'癶','bo'
insert into @t select'峬','bu'
insert into @t select'àê','ca'
insert into @t select'偲','cai'
insert into @t select'乲','cal'
insert into @t select'²Î','can'
insert into @t select'²Ö','cang'
insert into @t select'撡','cao'
insert into @t select'冊','ce'
insert into @t select'膥','cen'
insert into @t select'àá','ceng'
insert into @t select'硛','ceok'
insert into @t select'岾','ceom'
insert into @t select'猠','ceon'
insert into @t select'乽','ceor'
insert into @t select'²æ','cha'
insert into @t select'犲','chai'
insert into @t select'辿','chan'
insert into @t select'Øö','chang'
insert into @t select'³­','chao'
insert into @t select'³µ','che'
insert into @t select'ÞÓ','chen'


Ïà¹ØÎĵµ£º

SQL Server 2000½Ì²Ä¶ÁÊé±Ê¼Ç£¨2£©

  ½ñÌì¿´Á˵ÄÄÚÈÝÊÇÏÂÃæµÄ: 1.5 ·þÎñÆ÷¶ËÓë¿Í»§¶ËÍøÂç¿âµÄÉèÖà ʲôÊÇÍøÂç¿â,ÎÒµÄÀí½â¾ÍÊÇÍøÂçÁ¬½ÓµÄЭÒé¼°¸÷ÖÖÉèÖÃ. 1.5.1 ·þÎñÆ÷ÍøÂç¿âµÄÉèÖà 1.5.2 ÅäÖÿͻ§¶ËµÄÍøÂç¿â   µÚ1´Î½øÐÐÁ˽âÁË¡£   1.6 SQL Server ·þÎñÆ÷µÄ×¢²áÓëÁ¬½Ó Ã÷°×ÁËΪʲôҪע²áÓëÁ¬½Ó£¬Ö÷ÒªÊÇÓ¦ÓÃÓÚÔ¶³Ì·þÎñÆ÷µÄ¡£ 1.6.1 ......

SQL Server Ë÷Òý½á¹¹¼°ÆäʹÓ㨶þ£©

SQL Server Ë÷Òý½á¹¹¼°ÆäʹÓ㨶þ£©
×÷Õߣºfreedk
Ò»¡¢ÉîÈëdz³öÀí½âË÷Òý½á¹¹
¸ÄÉÆSQLÓï¾ä
¡¡¡¡ºÜ¶àÈ˲»ÖªµÀSQLÓï¾äÔÚSQL SERVERÖÐÊÇÈçºÎÖ´Ðеģ¬ËûÃǵ£ÐÄ×Ô¼ºËùдµÄSQLÓï¾ä»á±»SQL SERVERÎó½â¡£±ÈÈ磺
select * from table1 where name=''zhangsan'' and tID > 10000
ºÍÖ´ÐÐ:
select * from table1 where tID > ......

SQLÎÞÏÞ·ÖÀà´æ´¢¹ý³ÌÕûÀí2

Ä£·Â²Î¿¼:¶¯Ò×ÎÞÏÞ·ÖÀà
Óŵã:ËãµÃÉÏÊÇÕæÕýµÄÎÞÏÞ·ÖÀ࣬²»¹ýParentPathÊÇÓоÖÏÞÐÔ,ClassIDÊDZêʶÁÐ×Ô¶¯ÔöÒ».
ȱµã:ÐÂÔö¹ý³ÌÖÐParentID²»´æÔÚ»¹Ã»ÓÐÍêÉÆ£¬»á²åÈëNULLÊý¾Ý.ºóÃæÈý¸ö´æ´¢¹ý³Ì»¹ÔÚ²âÊÔ¡£
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[ArticleClass]') and OBJECTPROPERTY(id, N'Is ......

ÓÅ»¯SQL ServerÊý¾Ý¿â·þÎñÆ÷ÄÚ´æÅäÖÃ

ǰÑÔ
Å©ÒµÒøÐÐ×ÜÐÐ1998ÄêÒÔÀ´ÕýÊ½ÍÆ¹ãÁËаæÍøÂç°æ×ÛºÏÒµÎñͳ¼ÆÐÅϢϵͳ£¬¸ÃϵͳÊÇ»ùÓÚWindowsNT4.0ƽ̨£¬²ÉÓÿͻ§£¯·þÎñÆ÷ģʽ£¬ÒÔMicrosoft SQL ServerΪ»ù´¡½¨Á¢ÆðÀ´µÄ´óÐÍÊý¾Ý¿âÓ¦ÓóÌÐò£¬ÏµÍ³½çÃæÓѺᢲÙ×÷¼ò±ã£¬¼ÆËã¡¢·ÖÎö¡¢¼ìË÷¹¦Äܷdz£Ç¿´ó£¬Îª±£Ö¤Å©ÒµÒøÐÐϵͳ¼°Ê±½øÐÐ×ÝÏòºÍºáÏòÒµÎñÊý¾Ý²É¼¯¡¢°´ÕÕ²»Í¬ÒªÇóÉú³ ......

Éí·ÝÖ¤ÑéÖ¤Ëã·¨(SQL°æ)

Éí·ÝÖ¤ÑéÖ¤Ëã·¨(SQL°æ)
/**//*
ÑéÖ¤Éí·ÝÖ¤Ëã·¨
By:Áõ־ΰ
2008-1-29ÓëÌì½ò
*/
CREATE FUNCTION [fn_ValidateIDC]
(
@idc varchar(18)
)RETURNS BIT
AS
BEGIN
IF LEN(@idc)<>15 AND LEN(@idc)<>18--Éí·ÝÖ¤ºÅÖ»ÓÐ15»ò18λ
RETURN(0)
IF LEN(@idc)=15  --Èç¹ûÊÇ15λÉí·ÝÖ¤ ÔòÖ»ÑéÖ¤ÈÕÆÚºÍÊÇ·ñ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ