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

SQL Server ×Ö¶ÎÀàÐÍ


bit£º0»ò1µÄÕûÐÍÊý×Ö
int£º´Ó-2^31(-2,147,483,648)µ½2^31(2,147,483,647)µÄÕûÐÍÊý×Ö
smallint£º´Ó-2^15(-32,768)µ½2^15(32,767)µÄÕûÐÍÊý×Ö
tinyint£º´Ó0µ½255µÄÕûÐÍÊý×Ö

decimal£º´Ó-10^38µ½10^38-1µÄ¶¨¾«¶ÈÓëÓÐЧλÊýµÄÊý×Ö
numeric£ºdecimalµÄͬÒå´Ê

money£º´Ó-2^63(-922,337,203,685,477.5808)µ½2^63-1(922,337,203,685,477.5807)µÄ»õ±ÒÊý¾Ý£¬×îС»õ±Òµ¥Î»Ç§·Ö֮ʮ
smallmoney£º´Ó-214,748.3648µ½214,748.3647µÄ»õ±ÒÊý¾Ý£¬×îС»õ±Òµ¥Î»Ç§·Ö֮ʮ

float£º´Ó-1.79E+308µ½1.79E+308¿É±ä¾«¶ÈµÄÊý×Ö
real£º´Ó-3.04E+38µ½3.04E+38¿É±ä¾«¶ÈµÄÊý×Ö

datetime£º´Ó1753Äê1ÔÂ1ÈÕµ½9999Äê12ÈÕ31µÄÈÕÆÚºÍʱ¼äÊý¾Ý£¬×îСʱ¼äµ¥Î»Îª°Ù·ÖÖ®ÈýÃë»ò3.33ºÁÃë
smalldatetime£º´Ó1900Äê1ÔÂ1ÈÕµ½2079Äê6ÔÂ6ÈÕµÄÈÕÆÚºÍʱ¼äÊý¾Ý£¬×îСʱ¼äµ¥Î»Îª·ÖÖÓ

timestamp£ºÊ±¼ä´Á£¬Ò»¸öÊý¾Ý¿â¿í¶ÈµÄΨһÊý×Ö
uniqueidentifier£ºÈ«ÇòΨһ±êʶ·ûGUID

char£º¶¨³¤·ÇUnicodeµÄ×Ö·ûÐÍÊý¾Ý£¬×î´ó³¤¶ÈΪ8000
varchar£º±ä³¤·ÇUnicodeµÄ×Ö·ûÐÍÊý¾Ý£¬×î´ó³¤¶ÈΪ8000
text£º±ä³¤·ÇUnicodeµÄ×Ö·ûÐÍÊý¾Ý£¬×î´ó³¤¶ÈΪ2^31-1(2G)

nchar£º¶¨³¤UnicodeµÄ×Ö·ûÐÍÊý¾Ý£¬×î´ó³¤¶ÈΪ8000
nvarchar£º±ä³¤UnicodeµÄ×Ö·ûÐÍÊý¾Ý£¬×î´ó³¤¶ÈΪ8000
ntext£º±ä³¤UnicodeµÄ×Ö·ûÐÍÊý¾Ý£¬×î´ó³¤¶ÈΪ2^31-1(2G)

binary£º¶¨³¤¶þ½øÖÆÊý¾Ý£¬×î´ó³¤¶ÈΪ8000
varbinary£º±ä³¤¶þ½øÖÆÊý¾Ý£¬×î´ó³¤¶ÈΪ8000
image£º±ä³¤¶þ½øÖÆÊý¾Ý£¬×î´ó³¤¶ÈΪ2^31-1(2G)

ÕûÊýÊý¾ÝÀàÐÍ¡¡¡¡¡¡¡¡¡¡¡¡INT »òINTEGER¡¡ SMALLINT¡¡ TINYINT¡¡ BIGINT
¸¡µãÊý¾ÝÀàÐÍ¡¡¡¡¡¡¡¡¡¡¡¡REAL¡¡ FLOAT¡¡ DECIMAL¡¡ NUMERIC
¶þ½øÖÆÊý¾ÝÀàÐÍ¡¡¡¡¡¡¡¡¡¡BINARY¡¡ VARBINARY
Âß¼­Êý¾ÝÀàÐÍ¡¡¡¡¡¡¡¡¡¡¡¡BIT
×Ö·ûÊý¾ÝÀàÐÍ¡¡¡¡¡¡¡¡¡¡¡¡CHAR¡¡ NCHAR¡¡ VARCHAR¡¡ NVARCHAR
Îı¾ºÍͼÐÎÊý¾ÝÀàÐÍ¡¡¡¡¡¡TEXT¡¡ NTEXT¡¡ IMAGE
ÈÕÆÚºÍʱ¼äÊý¾ÝÀàÐÍ¡¡¡¡¡¡DATETIME¡¡ SMALLDATETIME
»õ±ÒÊý¾ÝÀàÐÍ¡¡¡¡¡¡¡¡¡¡¡¡MONEY¡¡ SMALLMONEY
Ìض¨Êý¾ÝÀàÐÍ¡¡¡¡¡¡¡¡¡¡¡¡TIMESTAMP¡¡ UNIQUEIDENTIFIER
Óû§×Ô¶¨ÒåÊý¾ÝÀàÐÍ¡¡¡¡¡¡SYSNAME
ÐÂÊý¾ÝÀàÐÍ¡¡¡¡¡¡¡¡¡¡¡¡¡¡SQL_VARIANT¡¡ TABLE
ÆäÖÐBIGINT SQL_VARIANT ºÍTABLE ÊÇSQL Server 2000 ÖÐÐÂÔö¼ÓµÄ3 ÖÖÊý¾ÝÀàÐÍÏÂÃæ·ÖÀིÊö¸÷ÖÖÊý¾ÝÀàÐÍ
Ò»¡¢ ÕûÊýÊý¾ÝÀàÐÍ
ÕûÊýÊý¾ÝÀàÐÍÊÇ×î³£ÓõÄÊý¾ÝÀàÐÍÖ®Ò»
1¡¢ INT INTEGER
INT »òINTEGER Êý¾ÝÀàÐÍ´æ´¢´Ó-231 -2 1


Ïà¹ØÎĵµ£º

Win7Ï°²×°SQL Server2005

ÔÚWin7Ï°²×°SQL2005¿ª·¢°æ£¬°²×°SQL Native ClientʱÌáʾ°²×°Öжϣ¬Ã»ÓÐÔÚÒ⣬ȻºóÔÚ°²×°SQL ServerʱÓÖÌáʾ“[Microsoft][SQL Native Client]¿Í»§¶Ë²»Ö§³Ö¼ÓÃÜ.SQL Server °²×°³ÌÐòÎÞ·¨Á¬½Óµ½Êý¾Ý¿â·þÎñ½øÐзþÎñÆ÷ÅäÖÃ.”жÔØSQL Native ClientÖØа²×°£¬»¹ÊÇÖжϣ¬ÐÞ¸´£¬Ò²Öжϣ¬ÔÙжÔØ£¬ÇåÀí×¢²á±í£¬ÖØ× ......

ͨ¹ý·ÖÎöSQLÓï¾äµÄÖ´Ðмƻ®ÓÅ»¯SQL(ËÄ)

Î壺 ORACLEµÄÖ´Ðмƻ®
±³¾°ÖªÊ¶£ºÎªÁ˸üºÃµÄ½øÐÐÏÂÃæµÄÄÚÈÝÎÒÃDZØÐëÁ˽âһЩ¸ÅÄîÐÔµÄÊõÓ
 
¹²ÏísqlÓï¾ä
 
ΪÁ˲»Öظ´½âÎöÏàͬµÄSQLÓï¾ä(ÒòΪ½âÎö²Ù×÷±È½Ï·Ñ×ÊÔ´£¬»áµ¼ÖÂÐÔÄÜϽµ)£¬ÔÚµÚÒ»´Î½âÎöÖ®ºó£¬ORACLE½«SQLÓï¾ä¼°½âÎöºóµÃµ½µÄÖ´Ðмƻ®´æ·ÅÔÚÄÚ´æÖС£Õâ¿éλÓÚϵͳȫ¾ÖÇøÓòSGA(system global are ......

SQL´´½¨Êý¾Ý¿â¡¢±í¡¢´æ´¢¹ý³Ì¼°µ÷ÓÃ

--Èç¹û´æÔÚÊý¾Ý¿âprogrammerPay  ¾Íɾ³ý
if exists (select * from sysdatabases where name='programmerPay')
drop database programmerPay
go
--´´½¨Êý¾Ý¿âprogrammerPay
create database programmerPay
on primary
(
name ='programmerPay_data',
filename='D:\programmerPay\programmerPay_data.mdf',
......

SQL ServerÀィORACLEÁ´½Ó·þÎñÆ÷µÄͼ½â

 Ê×ÏȼÆËã»úÉϱØÐë°²×°oracle£¬²¢ÅäÖú÷þÎñÃû
  °²×°oracleµÄ¹ý³ÌÖÐÒ»°ã»áÒªÇó½¨Á¢Ò»¸öÊý¾Ý¿â£¬Ò²¿ÉÒÔÖ®ºóÔÙ´´½¨
Õâ¸öºóÃæÓÐÒ»¸ö Êý¾Ý¿âÅäÖÃÖúÀí £¨´´½¨ÐÞ¸ÄÊý¾Ý¿âµÄ£¬Ò»°ãÃÜÂë´´½¨ÒªÇó×Öĸ¿ªÍ·£¬´óÓÚ7λɶµÄ£©ºÍÒ»¸önetÅäÖÃÖúÀí£¨Ìí¼Ó»òÕßÐÞ¸ÄÒ»¸öÊý¾Ý¿â·þÎñÃû£©£¬Ò»°ãÓÃplsql developerÔ¶³Ì²Ù×÷oracleÊý¾Ý¿â ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ