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


Ïà¹ØÎĵµ£º

QtÊý¾Ý¿â£¨ËÄ£©ÀûÓÃQSqlQueryÀàÖ´ÐÐSQLÓï¾ä£¨¶þ£©


±¾ÎÄÕÂÔ­´´ÓÚwww.yafeilinux.com ×ªÔØÇë×¢Ã÷³ö´¦¡£
½Ó×ÅÉÏһƪ½Ì³Ì¡£
¶þ£¬ÔÚSQLÓï¾äÖÐʹÓñäÁ¿¡£
ÎÒÃÇÏÈ¿´ÏÂÃæµÄÒ»¸öÀý×Ó£¬½«“²éѯ”°´Å¥µÄ²Ûº¯Êý¸ü¸ÄÈçÏ£º
void Widget::on_pushButton_clicked()
{
    QSqlQuery query;
    query.prepare(“insert i ......

oracle³£ÓÃsqlÓï¾ä

ÐÞ¸ÄÁÐÊôÐÔ
alter table tablename modify(name ,varchar2(10)) Áпí¶È²»µÃСÓÚÐÞ¸ÄǰµÄ¿í¶È
ÈÕÖ¾¹ÜÀí
ÊÓͼ v$logfile
alter database add logfile 'd:\orcl01.log' size 10m;//Ìí¼Ó×é
alter database add logfile member 'd:\orcl02.log' to group 4;//Ïò4×éÖÐÌí¼Ó³ÉÔ±
alter database drop logfile member 'd: ......

SQL Server2005 µ¼ÈëÊý¾Ý³ö´í

´íÎóÌáʾ£º
Ö¸¶¨µÄÁ¬½ÓÀàÐÍ“OLEDB”δ±»Ê¶±ðΪÓÐЧµÄÁ¬½Ó¹ÜÀíÆ÷ÀàÐÍ¡£µ±ÊÔͼ´´½¨Î´ÖªÁ¬½ÓÀàÐ͵ÄÁ¬½Ó¹ÜÀíÆ÷ʱ»á·µ»Ø´Ë´íÎó¡£Çë¼ì²éÁ¬½ÓÀàÐÍÃû³ÆµÄƴдÊÇ·ñÕýÈ·¡£
½â¾ö·½·¨£º
sqlserver2005-ÅäÖù¤¾ß-SqlServer configuration manager-SqlServer2005·þÎñ-sqlserver Integration Services£¬ÓÒ»÷-Ñ¡ÔñÊôÐÔ£¬È»ºó° ......

sqlÖ®left join¡¢right join¡¢inner joinµÄÇø±ð


sqlÖ®left join¡¢right join¡¢inner joinµÄÇø±ð
left join(×óÁª½Ó) ·µ»Ø°üÀ¨×ó±íÖеÄËùÓмǼºÍÓÒ±íÖÐÁª½á×Ö¶ÎÏàµÈµÄ¼Ç¼
right join(ÓÒÁª½Ó) ·µ»Ø°üÀ¨ÓÒ±íÖеÄËùÓмǼºÍ×ó±íÖÐÁª½á×Ö¶ÎÏàµÈµÄ¼Ç¼
inner join(µÈÖµÁ¬½Ó) Ö»·µ»ØÁ½¸ö±íÖÐÁª½á×Ö¶ÎÏàµÈµÄÐÐ
¾ÙÀýÈçÏ£º
-------------------------------------------- ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ