SQL Server 2000µÄÊý¾Ý¿âÈÝÁ¿
-->Ŀ¼
-->SQL Server ¹¹¼Ü
-->ʵʩϸÔò
-->×î´óÈÝÁ¿ËµÃ÷
×î´óÖµ£¨ÊýÁ¿»ò´óС£©
¶ÔÏó SQL Server 7.0 SQL Server 2000
Åú´¦Àí´óС 65,536 * ÍøÂçÊý¾Ý°ü´óС1 65,536 * ÍøÂçÊý¾Ý°ü´óС1
ÿ¸ö¶Ì×Ö·û´®ÁеÄ×Ö½ÚÊý 8,000 8,000
ÿ¸ö text¡¢ntext¡¢»ò image ÁеÄ×Ö½ÚÊý 2 GB£2 2 GB£2
ÿ¸ö GROUP BY¡¢ORDER BYµÄ×Ö½ÚÊý 8,060
ÿ¸öË÷ÒýÖеÄ×Ö½ÚÊý 900 9002
ÿ¸öÍâ¼üµÄ×Ö½ÚÊý 900 900
ÿ¸öÖ÷¼üµÄ×Ö½ÚÊý 900 900
ÿÐÐ×Ö½ÚÊý 8,060 8,060
´æ´¢¹ý³ÌÔ´Îı¾ÖеÄ×Ö½ÚÊý Åú´¦Àí´óС֮½ÏСÕß»òÕß 250 MB Åú´¦Àí´óС֮½ÏСÕß»òÕß 250 MB
ÿ¸öÊý¾Ý±íµÄ¾Û¼¯Ë÷ÒýÊý 1 1
GROUP BY¡¢ORDER BY ÖеÄÁÐÊý Ö»ÊÜ×Ö½ÚÊýÏÞÖÆ
GROUP BY WITH CUBE »ò WITH ROLLUP Óï¾äÖеÄÁÐÊý»ò±í´ïʽÊýÄ¿ 10
ÿ¸öË÷ÒýµÄÁÐÊý 16 16
ÿ¸öÍâ¼üµÄÁÐÊý 16 16
ÿ¸öÖ÷¼üµÄÁÐÊý 16 16
ÿ¸ö»ù´¡Êý¾Ý±íµÄÁÐÊý 1,024 1,024
ÿ¸öSELECT Óï¾äµÄÁÐÊý 4,096 4,096
ÿ¸öINSERT Óï¾äµÄÁÐÊý 1,024 1,024
ÿ¸ö¿Í»§¶ËµÄÁ¬½Ó¸öÊý ÒÑÅäÖÃÁ¬½ÓµÄ×î´óÖµ ÒÑÅäÖÃÁ¬½ÓµÄ×î´óÖµ
Êý¾Ý¿â´óС 1,048,516 TB3 1,048,516 TB3
ÿ¸ö SQL Server ʵÀýµÄÊý¾Ý¿â¸öÊý 32,767 32,767
ÿ¸öÊý¾Ý¿âµÄÎļþ×é¸öÊý 256 256
ÿ¸öÊý¾Ý¿âµÄÎļþ¸öÊý 32,767 32,767
Îļþ´óС£¨Êý¾Ý£© 32 TB 32 TB
Îļþ´óС£¨ÈÕÖ¾£© 4 TB 32 TB
ÿ¸öÊý¾Ý±íµÄÍâ¼ü±íÒýÓà 253 253
±êʶ·û³¤¶È£¨ÒÔ×Ö·û¼Æ£© 128 128
ÿ̨¼ÆËã»úµÄʵÀýÊý ÔÝȱ 16
°üº¬ SQL Óï¾äµÄ×Ö·û´®³¤¶È£¨Åú´¦Àí´óС£© 65,536 * ÍøÂçÊý¾Ý°ü´óС1 65,536 * ÍøÂçÊý¾Ý°ü´óС1
ÿ¸öÁ¬½ÓµÄËøÊý ÿ¸ö·þÎñÆ÷µÄ×î´óËøÊý ÿ¸ö·þÎñÆ÷µÄ×î´óËøÊý
ÿ¸ö SQL Server ʵÀýµÄËøÊý 2,147,483,647£¨¾²Ì¬£©
SQL Server 40£¥ µÄÄڴ棨¶¯Ì¬£© 2,147,483,647£¨¾²Ì¬£©
SQL Server 40£¥ µÄÄڴ棨¶¯Ì¬£©
ǶÌ×´æ´¢¹ý³Ì²ãÊý 32 32
ǶÌ××Ó²éѯ 32 32
ǶÌ×´¥·¢Æ÷²ãÊý 32 32
ÿ¸öÊý¾Ý±íµÄ·Ç¾Û¼¯Ë÷Òý¸öÊý 249 249
SQL Server ʵÀýÖÐͬʱ´ò¿ªµÄ¶ÔÏó¸öÊý4 2,147,483,647£¨»ò¿ÉÓÃÄڴ棩 2,147,483,647£¨»ò¿ÉÓÃÄڴ棩
ÿ¸öÊý¾Ý¿âÖеĶÔÏó¸öÊý 2,147,483,6474 2,147,483,6474
ÿ¸ö´æ´¢¹ý³ÌµÄ²ÎÊý¸öÊý 1,024 1,024
ÿ¸öÊý¾Ý±íµÄ REFERENCE ¸öÊý 253 253
ÿ¸öÊý¾Ý±íµÄÐÐÊý ÊÜ¿ÉÓô洢×ÊÔ´ÏÞÖÆ ÊÜ¿ÉÓô洢×ÊÔ´ÏÞÖÆ
ÿ¸öÊý¾Ý¿âµÄÊý¾Ý±í¸öÊý ÊÜÊý¾Ý¿âÖеĶÔÏó¸öÊýÏÞÖÆ4 ÊÜÊý¾Ý¿âÖеĶÔÏó¸öÊýÏÞÖÆ4
ÿ¸ö SELECT Óï¾äµÄÊý¾Ý±í¸öÊý 256 256
ÿ¸öÊý¾Ý±íµÄ´¥·¢Æ÷¸öÊý ÊÜÊý¾Ý¿â
Ïà¹ØÎĵµ£º
ʹÓùýSQL Server 2000µÄÈ˶¼ÖªµÀ£¬ÒªÏëʵÏÖÐÐÁÐת»»,±ØÐë×ÛºÏÀûÓþۺϺ¯ÊýºÍ¶¯Ì¬SQL£¬¾ßÌåʵÏÖÆðÀ´ÐèÒªÒ»¶¨µÄ¼¼ÇÉ£¬¶øÔÚSQL Server 2005ÖУ¬Ê¹ÓÃÐÂÒý½øµÄ¹Ø¼ü×ÖPIVOT/UNPIVOT£¬Ôò¿ÉÒÔºÜÈÝÒ×µÄʵÏÖÐÐÁÐת»»µÄÐèÇó¡£
ÔÚ±¾ÎÄÖÐÎÒÃǽ«Í¨¹ýÁ½¸ö¼òµ¥µÄÀý×ÓÏêϸ½²½âPIVOT/UNPIVOTµÄÓ÷¨¡£
PIVOTµÄÓ÷¨£º
Ê×ÏÈ´´½¨²âÊÔ±í£¬È» ......
ÎÒÃÇÖªµÀ£¬SQL ServerÊÂÎñÈÕÖ¾Ö÷ÒªÊÇÓÃÀ´¼Ç¼ËùÓÐÊÂÎñ¶ÔÊý¾Ý¿âËù×öµÄÐ޸ģ¬Èç¹ûϵͳ³öÏÖ¹ÊÕÏ£¬Ëü½«³ÉΪ×îÐÂÊý¾ÝµÄΨһÀ´Ô´¡£ÈÕÖ¾µÄ²Ù×÷³£ÓÐÒÔϼ¸¸öÓ¦Óãº
Ò»¡¢ÊÂÎñÈÕÖ¾ÎļþLDFµÄ¶ªÊ§
µ±ÎÒÃDz»Ð¡É¾³ý»òÕßLDFÎļþ¶ªÊ§µÄʱºò£¬Êý¾Ý¿âֻʣÏÂMDFÎļþ£¬´Ëʱֱ½Óͨ¹ý¸½¼ÓMDFÊÇÎÞ·¨»Ö¸´Êý¾Ý¿âµÄ£¬ÄÇÎÒÃÇÔõôÑù²ÅÄָܻ´Êý¾Ý¿âÄØ?Î ......
1¡¢Á¬½ÓOracleÊý¾Ý¿â
Æô¶¯SQL*Plus£¬ÒªÇóÊäÈëUser Name¡¢Password¡¢Host StringÕâÈý¸ö²ÎÊý£¬ÀýÈçÎÒÔÚ°²×°µÄʱºòĬÈÏ´´½¨µÄÊý¾Ý¿âΪorcl£¬Ò²¾ÍÊÇSID£¬ÃÜÂëҲΪorcl£¬¶ÔÓ¦ÉÏÃæµÄÈý¸ö²ÎÊýÈçÏÂËùʾ£º
User Name£ºorcl
Password£ºorcl
Host String£ºorcl as sysdba
¾Í¿ÉÒԵǼ³É¹¦¡£
»òÕßÒ²¿ÉÒÔʹÓÃĬÈϵÄscottÀ´µÇ¼£º
......
תÔØ×Ô:http://www.diybl.com/course/7_databases/sql/sqlServer/2009124/154621_2.html
Ò»¸öÌâÄ¿Éæ¼°µ½µÄ50¸öSqlÓï¾ä
Student(S#,Sname,Sage,Ssex) ѧÉú±í
Course(C#,Cname,T#) ¿Î³Ì±í
SC(S#,C#,score) ³É¼¨±í
Teacher(T#,Tname) ½Ìʦ±í
ÎÊÌ⣺
1¡¢²éѯ“001”¿Î³Ì±È“002”¿Î³Ì³É¼¨¸ßµÄ ......
ÔÌû¼°ÌÖÂÛ£ºhttp://bbs.bc-cn.net/dispbbs.asp?boardid=12&id=140292
* ×î½üÒòΪ¿ª·¢»î¶¯ÐèÒª,ÓÃÉÏÁËEclipse,²¢ÒªÇóʹÓþ«¼ò°æµÄSQLÊý¾Ý¿â(¼´SQL Server 2005)À´½øÐпª·¢ÏîÄ¿ *
1.×¼±¸¹¤×÷: ×¼±¸Ïà¹ØµÄÈí¼þ(Eclipse³ýÍâ,¿ªÔ´Èí¼þ¿ÉÒÔ´Ó¹ÙÍøÏÂÔØ)
<1> .Microsoft   ......