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

Êý¾Ý¿â×Ö¶ÎÀàÐÍ SQL Server

—×Ö·ûÀàÐÍ
Char: ¶¨³¤·ÇUnicodeµÄ×Ö·ûÐÍÊý¾Ý£¬×î´ó³¤¶ÈΪ8000
Varchar:±ä³¤·ÇUnicodeµÄ×Ö·ûÐÍÊý¾Ý£¬×î´ó³¤¶ÈΪ8000
Text(varchar(max)):±ä³¤·ÇUnicodeµÄ×Ö·ûÐÍÊý¾Ý£¬×î´ó³¤¶ÈΪ2G
Nchar:¶¨³¤UnicodeµÄ×Ö·ûÐÍÊý¾Ý£¬×î´ó³¤¶ÈΪ8000
Nvarchar:±ä³¤UnicodeµÄ×Ö·ûÐÍÊý¾Ý£¬×î´ó³¤¶ÈΪ8000
Ntext(nvarchar(max)):±ä³¤UnicodeµÄ×Ö·ûÐÍÊý¾Ý£¬×î´ó³¤¶ÈΪ2G
—ÊýÖµÀàÐÍ
Bit£º0»ò1µÄÕûÐÍÊý×Ö
Tinyint£º ´Ó0µ½255µÄÕûÐÍÊý×Ö
Smallint:£º´Ó-2^15(-32,768)µ½2^15(32,767)µÄÕûÐÍÊý×Ö
Int£º´Ó-2^31(-2,147,483,648)µ½2^31(2,147,483,647)µÄÕûÐÍÊý×Ö
Bigint£º´Ó-2^63µ½2^63-1µÄÕûÐÍÊý×Ö£¨2000ºÃÏñÊÇûÓеģ©
Smallmoney£º  ´Ó-2^31µ½2^31µÄ»õ±ÒÊý¾Ý£¬×îС»õ±Òµ¥Î»Ç§·Ö֮ʮ
Money£º  ´Ó-2^63µ½2^63-1µÄ»õ±ÒÊý¾Ý£¬×îС»õ±Òµ¥Î»Ç§·Ö֮ʮ
Decimal£º´Ó-10^38µ½10^38-1µÄ¶¨¾«¶ÈÓëÓÐЧλÊýµÄÊý×Ö
Numeric£º decimalµÄͬÒå´Ê
Float£º  ´Ó-1.79E+308µ½1.79E+308¿É±ä¾«¶ÈµÄÊý×Ö
Real£º´Ó-3.04E+38µ½3.04E+38¿É±ä¾«¶ÈµÄÊý×Ö
—ÈÕÆÚºÍʱ¼äÀàÐÍ
Datetime£º ´Ó1753Äê1ÔÂ1ÈÕµ½9999Äê12ÈÕ31µÄÈÕÆÚºÍʱ¼äÊý¾Ý£¬×îСʱ¼äµ¥Î»Îª°Ù·ÖÖ®ÈýÃë»ò3.33ºÁÃë¡£³¤¶ÈΪ8¸ö×Ö½Ú£¬µÚÒ»¸ö4×Ö½Ú´æ´¢base date £¨¼´ 1900 Äê 1 Ô 1 ÈÕ£©Ö®Ç°»òÖ®ºóµÄÌìÊý£¬Èç¹ûÊÇ1900 Äê 1 Ô 1 ÈÕÔò´æ´¢0£¬ÁíÍâÒ»¸ö 4 ×Ö½Ú´æ´¢ÒÔÎçÒ¹ºóÿÌìµÄʱ¼ä
Smalldatetime£º´Ó1900Äê1ÔÂ1ÈÕµ½2079Äê6ÔÂ6ÈÕµÄÈÕÆÚºÍʱ¼äÊý¾Ý£¬×îСʱ¼äµ¥Î»Îª·ÖÖÓ. ´æ´¢ÈÕÆÚºÍÿÌìµÄʱ¼ä£¬µ«¾«È·¶ÈµÍÓÚ datetime ¡£³¤¶ÈΪ4¸ö×Ö½Ú£¬µÚÒ»¸ö2×Ö½Ú´æ´¢1900 Äê 1 Ô 1 ÈÕºóµÄÌìÊý£¬µÚ¶þ¸ö2×Ö½Ú´æ´¢ÎçÒ¹ºóµÄ·ÖÖÓÊý¡£
¿ÉÒÔ½«ÕâÁ½ÖÖÀàÐÍת»»³Éfloat ¸¡µãÊý, ÆäÖÐÕûÊý²¿·Ö¾ÍÊǶÔÓ¦µÄÈÕÆÚ×Ö½Ú, ¶øСÊý²¿·ÖÊÇʱ¼äÏàÓ¦µÄ±ÈÀý
—2008ÐÂÔöµÄÈÕÆÚʱ¼äÀàÐÍ
Date£º½ö´æ´¢ÈÕÆÚ£¬·¶Î§ÊÇ´Ó 1000 Äê 1 Ô 1 ÈÕµ½ 9999 Äê 12 Ô 31 ÈÕ£¬3 ×Ö½Ú³¤¶È£¬ÇÒ¾«¶ÈΪ 10 λ¡£Date ÀàÐ͵Ä׼ȷÐÔ½öÏÞÓÚµ¥Ìì¡£
Time£º½ö´æ´¢Ò»ÌìÖеÄʱ¼ä£¬Ö§³ÖµÄ·¶Î§ÊÇ 00:00:00.0000000 µ½ 23:59:59.9999999£¨Ð¡Ê±¡¢·ÖÖÓ¡¢ÃëºÍСÊýÃ룩¡£¿ÉÔÚ´´½¨Êý¾ÝÀàÐÍʱָ¶¨Ð¡ÊýÃëµÄ¾«¶È¡£Ä¬ÈϾ«¶ÈÊÇ 7 λ£¬×¼È·¶ÈÊÇ 100 ºÁ΢Ãë¡£¾«¶ÈÓ°Ïì×ÅËùÐèµÄ´æ´¢¿Õ¼ä´óС£¬·¶Î§°üÀ¨×î¶à 2 λµÄ 3 ¸ö×Ö½Ú¡¢3 »ò 4 λµÄ 4 ¸ö×Ö½ÚÒÔ¼° 5 µ½ 7 λµÄ 5 ¸ö×Ö½Ú¡£
Datetime2£ºdatetime ÀàÐ͵ÄÀ©Õ¹,ÈÕÆÚ·¶Î§ÊÇ 0001 Äê 1 Ô 1 ÈÕµ½ 9999 Äê 12 Ô 31 ÈÕ,Óë tim


Ïà¹ØÎĵµ£º

SQL SERVER ÈçºÎ¶ÁÈ¡Ò³ÃæÉϵÄÊý¾Ý

CSDNÉÏÓÐƪÌû×Óhttp://topic.csdn.net/u/20100223/15/644e6212-9fdc-42de-81ad-785d28ed71d3.html
ÌÖÂÛ²éѯ¼Æ»®¶ÁÈ¡Ë÷ÒýÒ³µÄÎÊÌâ¡£
Ö÷ÒªÎÊÌâÊÇ£º ÔÚÒ»ÕŽ¨Óоۼ¯Ë÷Òý£¨Ã»ÓÐÆäËü·Ç¾Û¼¯Ë÷Òý£©µÄ±íÖ´ÐÐselect count(*) ¡£²éѯÏÔʾɨÃèÁËËùÓеÄË÷ÒýÖмä²ãÒ¶¡£´ÓÀíÂÛÉϽ²£¬ÓÉÓÚÿ¸öÊý¾ÝÒ³¶¼¼Ç¼×ÅËüµÄÉÏÒ»¸öpageºÍÏÂÒ»¸öpage, ......

4.5 ÅäÖÃSQL Server 2005·þÎñÆ÷

·þÎñÓë·þÎñÆ÷ÊÇÁ½¸ö²»Í¬µÄ¸ÅÄ·þÎñÆ÷ÊÇÌṩ·þÎñµÄ¼ÆËã»ú£¬ÅäÖ÷þ
ÎñÆ÷Ö÷ÒªÊǶÔÄÚ´æ¡¢´¦ÀíÆ÷¡¢°²È«ÐԵȼ¸¸ö·½ÃæÅäÖá£ÓÉÓÚSQL Server 2005·þÎñÆ÷µÄÉèÖòÎÊý±È½Ï¶à£¬ÕâÀïѡһЩ±È½Ï³£ÓõĽéÉÜ¡£
ÅäÖÃSQL Server 2005·þÎñÆ÷µÄ°ì·¨£ºÆô¶¯¡¾SQL
Server Management
Studio¡¿£¬ÔÚ¡¾¶ÔÏó×ÊÔ´¹ÜÀíÆ÷¡¿´°¿ÚÀÓÒ»÷ÒªÅäÖõķþÎ ......

sql server 2000 ³£¼û´íÎó£¬ÏµÍ³126´íÎó£¡

תÔØ£º
http://blog.sina.com.cn/s/blog_5f4ed9cb0100dza0.html
http://wowh.wuyan.org/2008/04/15/sqlserver-2k-system-error-126/
ÔÚ°²×°sql server ¾­³£Óöµ½ÕâÑù¡¢ÄÇÑùµÄ´íÎ󣬽ñÌìÔÚËѵ½±È½ÏÈ«ÃæµÄ£¬¾ÍÌù³öÀ´£¬·ÖÏíÏ£¡
SQL
Server°²×°ÎÊÌâ´óÈ«
(2007-09-06
09:24:28)
±êÇ©£ºIT/¿Æ¼¼
 
Ò¼¡£WINDOWS XP ......

SQL ServerË÷Òý¹ÜÀíÖ®Áù´óÌúÂÉ


Ô­ÎÄת×Ô:http://tech.it168.com/a2009/0218/265/000000265868.shtml
Ë÷ÒýÊÇÒÔ±íÁÐΪ»ù´¡µÄÊý¾Ý¿â¶ÔÏó¡£Ë÷ÒýÖб£´æ×űíÖÐÅÅÐòµÄË÷ÒýÁУ¬²¢ÇҼͼÁËË÷ÒýÁÐÔÚÊý¾Ý¿â±íÖеÄÎïÀí´æ´¢Î»Öã¬ÊµÏÖÁ˱íÖÐÊý¾ÝµÄÂß¼­ÅÅÐò¡£Í¨¹ýË÷Òý£¬¿ÉÒÔ¼Ó¿ìÊý¾ÝµÄ²éѯËٶȺͼõÉÙϵͳµÄÏìӦʱ¼ä;¿ÉÒÔʹ±íºÍ±íÖ®¼äµÄÁ¬½ÓËٶȼӿ졣
  µ«ÊÇ£¬ ......

һЩ²»´íµÄsqlÓï¾ä

1¡¢ËµÃ÷£º¸´ÖƱí(Ö»¸´Öƽṹ,Ô´±íÃû£ºa бíÃû£ºb) (Access¿ÉÓÃ)
·¨Ò»£ºselect * into b from a where 1<>1
·¨¶þ£ºselect top 0 * into b from a
2¡¢ËµÃ÷£º¿½±´±í(¿½±´Êý¾Ý,Ô´±íÃû£ºa Ä¿±ê±íÃû£ºb) (Access¿ÉÓÃ)
insert into b(a, b, c) select d,e,f from b;
3¡¢ËµÃ÷£º¿çÊý¾Ý¿âÖ®¼ä±íµÄ¿½±´(¾ßÌåÊý¾ÝʹÓþø¶Ô· ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ