Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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'


Ïà¹ØÎĵµ£º

´ÓExcelµ¼ÈëSQL SERVERÊý¾Ý¿â


Õâ´ÎÏîÄ¿ÊÇÒ»¸ö¾­·Ñ¹ÜÀíϵͳ£¬Éæ¼°µÄÊý¾Ý¿â¼Ç¼Êý³¬³öÁËÒÔǰ×ö¹ýµÄ£¬Ã¿´Î×îÉÙ¶¼Òª´ÓEXCELµ¼ÈëÊý¾Ý¿â¼¸Ç§ÉÏÍòÌõÊý¾Ý£¬µÚÒ»´ÎʹÓÃÒ»°ãµÄ·½·¨£¬Ö´ÐÐSQLÓï¾ä£¬ÔËÓÃforÑ­»·Ò»ÌõÒ»ÌõµÄ²åÈë£¬ÖØ¸´Êý¾ÝҲʹÓóÌÐòÅжϣ¬ºóÀ´½»¸¶µÄʱºò³öÎÊÌâÁË£¬Ò»´Î³¬¹ýÒ»¶¨ÌõÊýµÄ¼Ç¼£¬Ö±½Óʧ°Ü£¬ÕâÃ÷ÏÔÊÇЧÂʵÄÎÊÌâ¡£´ÓÍøÂçÉÏÕÒÁËһϣ¬·¢ÏÖÁËÒ ......

sqlÊý×ÖתӢÎÄ

create function decodehundred(@hundredstring varchar(300) )
returns  varchar(1000)
as
begin
declare  @tmp varchar(1000),@decodehundred varchar(1000)
set @decodehundred = ''
declare @strno1 varchar(1000)
select  @strno1 = 'One       Two   ......

PL\SQL²éѯ³öÏÖÂÒÂë½â¾ö°ì·¨

1. ´ò¿ªpl\sql  ÔËÐÐÏÂÃæµÄ½Å±¾£¬²éѯ·þÎñÆ÷µÄ×Ö·û¼¯ ¡£
SELECT 'AMERICAN_AMERICA.' || PROPERTY_VALUE
from DATABASE_PROPERTIES
WHERE PROPERTY_NAME = 'NLS_CHARACTERSET';
ÎÒµÄÊÇ    AMERICAN_AMERICA.ZHS16GBK
2.ÔÚÔËÐÐÖÐÊäÈ룺regedit£¬´ò¿ª×¢²á±í±à¼­Æ÷£» 
3.HKEY_LOCAL_MACHI ......

SQL Server¹ÜÀí³£ÓÃSQLÓï¾ä

1. ²é¿´Êý¾Ý¿âµÄ°æ±¾       
¡¡¡¡ select @@version
¡¡¡¡2. ²é¿´Êý¾Ý¿âËùÔÚ»úÆ÷²Ù×÷ϵͳ²ÎÊý       
¡¡¡¡exec master..xp_msver
¡¡¡¡3. ²é¿´Êý¾Ý¿âÆô¶¯µÄ²ÎÊý        
¡¡¡¡sp_configure
¡¡¡¡4 ......

SQLʱ¼ä¶Î²éѯ


SQLʱ¼ä¶Î²éѯ
ACCESSµÄ»°
select * from table where date1<#2008-1-20# and date2>#2007-8-30#
MYSQLµÄ»°
select * from table where date1<'2008-1-20' and date2>'2007-3-30'
Ò²¿ÉÒÔ
select * from table where date1 between '2008-1-20' and '2007-3-30'
ÆäÖÐdate1,date2¶¼ÊÇÈÕÆÚÀàÐ͵Ä× ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ