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

SQL ServerµÄ¶¨Ðò(Collation)

ʹÓÃSQL ServerµÄÅóÓÑ們應該¶¼ÖªµÀSQL ServerµÄ資ÁÏ庫ÓÐÒ»個設¶¨½Ð×ö¶¨Ðò(Collation)£¬½ñÌìÎÒ們¾Í來¿´¿´¶¨Ðò這東Î÷ÊÇʲ麼£¬Ê×ÏÈÎÒ們¿´Ò»ÏÂWikiÉÏ對¶¨ÐòµÄ說Ã÷£º
Collation is the assembly of written information into a standard order. One common type of collation is called alphabetisation, though collation is not limited to ordering letters of the alphabet. Collating lists of words or names into alphabetical order is the basis of most office filing systems, library catalogs and reference books..[Reference from here.]
這¶Î話講µÃÐþÁË點£¬ÎÒ們¿´ÁíÒ»個±È較Ò×¶®µÄ說Ã÷£º
Collation refers to a set of rules that determine how data is sorted and compared. Character data is sorted using rules that define the correct character sequence, with options for specifying case-sensitivity, accent marks, kana character types and character width.[Reference from here.]
這¶Î話¾Í簡潔¶àÁË£¬簡單來說¶¨ÐòÖ¸µÄ¾ÍÊÇ決¶¨資Áϱ»ÅÅÐò與±È對µÄ規則£¬¶ø±È對µÄ規則Ò»°ã¿É´Ö·Ö為幾´ó類£º
¶¨ÐòµÄ·Ö類
Case sensitivity(CS)
簡單來說¾ÍÊÇ區·Ö´óС寫£¬A¸úaÊDz»Í¬µÄ£¬Èç¹ûÊÇCase Insensitive(CI)µÄ話AÔÚÅÅÐò»òÕß²é詢時¾Í會±»視為Ïàͬ£¬Ò²¾ÍÊDzé詢A£¬連ͬaÒ²會±»²é詢µ½¡£
Accent sensitivity(AS)
´ú±íµÄÊÇÇ»調ÉϵIJî別£¬a¸úá¡¢o¸úóÔÚÇ»調ÉÏÊÇÏàͬµÄ£¬ÄDzé詢時ÊÇÒª視為Ïàͬ£¬Èç¹ûÊǵÄ話£¬ÄǾÍÊÇAccent Insensitive(AI)£¬Èç¹û²»ÊǵÄ話¾Í視為Accent sensitive¡£
Kana Sensitivity(KS)
ÈÕÎÄÖÐµÄÆ¬¼ÙÃû(Hiragana)與ƽ¼ÙÃû(Katakana)Èç¹û±»視為Ïàͬ£¬ÄǾÍÊÇKana Insensitive(KI)£¬·´Ö®¾ÍÊÇKane sensitive.¡£
Width sensitivity(WS)
當°ëÐÎ×Ö與È«ÐÍ×Ô±»視為Ïàͬ(A¸ú£Á)£¬ÄǾÍÊÇWidth Insensitive(


Ïà¹ØÎĵµ£º

SQL SERVER 2008 ѹËõ±¸·Ý

/*
    SQL SERVER 2008 ѹËõ±¸·Ý
 
 
 
    SQL SERVER 2008 ÔÚÆóÒµ°æºÍ¿ª·¢°æÖÐÒýÈëÁ˱¸·ÝѹËõ.ʹÓÃÕ߸ö¹¦ÄÜ¿ÉÒÔ¸ü¿ìËٵı¸·ÝÊý¾Ý¿â²¢ÇÒ
    ÏûºÄ¸üÉٵĴÅÅ̿ռä.ѹËõÁ¿ÒÀÀµÓÚÊý¾Ý¿âÖд洢µÄÊý¾Ý.ÀýÈç,º¬ÓÐÖØ¸´Öµ×Ö·ûÊý¾ÝµÄÊý¾Ý¿â¿ÉÒÔÓÐ
   ......

SQL SERVER 2005Ⱥ¼¯


SQL SERVER 2005µÄȺ¼¯±ØÐëÔÚʵÏÖÁËWINDOWSȺ¼¯µÄ»ù´¡ÉϲſÉÒÔ¡£
Ê×ÏÈÎÒÃÇÏÈÀ´¿´Ò»ÏÂSQL SERVER 2005Ⱥ¼¯µÄһЩÏà¹Ø½éÉÜ£º
ÔÚSQL SERVER 2005ÖÐÖ÷Òª¿ÉÒÔʹÓþµÏñºÍȺ¼¯Á½ÖÖ·½·¨À´ÊµÏָ߿ÉÓÃÐÔ£¬ÖÁÓÚÊý¾Ý¿â¾µÏñ×÷ΪSQL SERVER 2005µÄÐÂÌØÐÔÖ®Ò»£¬ÎÒÔÚÇ°ÃæµÄ²©ÎÄÒѾ­×öÁ˽éÉÜ£¬½ñÌìÎÒÃǾÍÀ´¿´Ò»ÏÂȺ¼¯µÄÅäÖ÷½·¨£ºµ±È»Ëüà ......

sqlÓï¾äѧϰ±Ê¼Ç(8) Ìí¼ÓÔ¼Êø£¬ÊµÏÖÊý¾ÝÍêÕûÐÔ

USE StudentInfo
--=====================================================
--Author     £ºyangjuncheng  
--Create Date:2010.5.26
--Decription :¸ø±íÌí¼ÓÔ¼Êø£¨¿ÉÒÔÔÚ´´½¨±íʾֱ½ÓÌí¼Ó
--            Ò²¿ÉÒÔʹÓÃalter¹Ø¼ ......

ÀûÓÃhibernateµÄQueryÖ±½ÓÖ´ÐÐSQLÓï¾ä

ÀûÓÃhibernateµÄQuery½øÐÐÖ±½ÓÖ´ÐÐSQLÓï¾ä
Ò»¡¢
String sql = "insert into SHOP_MALL_ACCOUNT_MAP_T (MALL_NO,ACCOUNT) values ('"
+ mallNo + "','" + userId + "')";
SQLQuery query = getSession().createSQLQuery(sql);
query.executeUpdate();
¶þ¡¢
String sql = "select to_char(SYN_DATE,' ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ