MS-SQL > SQL ¼¹öÀÇ µ¥ÀÌÅÍ Å¸ÀÔ
µî·ÏÀÏ : 2017-07-03 19:47
Á¶È¸¼ö : 52,323
SQL ¼¹ö¿¡¼ »ç¿ëÇÏ´Â µ¥ÀÌÅÍ Å¸ÀÔÀº ½Ã½ºÅÛÀÌ Á¦°øÇÏ´Â ½Ã½ºÅÛ µ¥ÀÌÅÍÇü°ú »ç¿ëÀÚ°¡ Á¤ÀÇÇÏ´Â »ç¿ëÀÚ Á¤ÀÇ µ¥ÀÌÅÍÇüÀÌ ÀÖ½À´Ï´Ù. ¿©±â¿¡¼´Â ½Ã½ºÅÛ µ¥ÀÌÅÍÇü¸¸À» Á¤¸®ÇÕ´Ï´Ù.
À¯Çü
|
ÀÚ·áÇü
|
Å©±â(BYTE)
|
¼³¸í
|
Á¤¼öÇü
|
int
|
4
|
(-2,147,483,648)¿¡¼ (2,147,483,647)±îÁö¼ö
|
smallint
|
2
|
(-32,768)¿¡¼ (32,767) ±îÁö¼ö
|
tinyint
|
1
|
0¿¡¼ 255 ±îÁö ¼ö
|
bit
|
1
|
0 ¶Ç´Â 1
|
°íÁ¤ ¼Ò¼öÁ¡
|
numeric
|
2~17
|
10^38-1¿¡¼ 10^38 -1 ±îÁö¼ö
|
decimal
|
2~17
|
10^38-1¿¡¼ 10^38 -1 ±îÁö¼ö
|
ºÎµ¿ ¼Ò¼öÁ¡
|
float
|
8
|
-1.79E + 308¿¡¼ 1.79E + 308 ±îÁöÀÇ ¼ö
|
real
|
4
|
-3.40E + 38¿¡¼ 3.40+38±îÁöÀÇ ¼ö
|
³¯Â¥
|
datetime
|
8
|
1753.1.1 ~ 9999.12.31 ÀϱîÁö ¹Ð¸®ÃʱîÁö ³ªÅ¸³½´Ù.
|
smalldatetime
|
|
1900.1.1. 2079.6.6ÀϱîÁö 1ºÐ±îÁö ³ªÅ¸³½´Ù.
|
¹®ÀÚ
|
char,varchar
|
0~8000
|
0~8000 ÀÚ ÀÌÇÏÀÇ ¹®ÀÚ
|
nchar,nvarchar
|
0~8000
|
0~4000 ÀÚ ÀÌÇÏÀÇ À¯´ÏÄÚµå ¹®ÀÚ
|
text
|
0~2G
|
8000ÀÚ°¡ ³Ñ´Â ¹®ÀÚ. (0¿¡¼ 2,147,483,647)±ÛÀÚ±îÁö ÀúÀå°¡´É
|
ntext
|
0~2G
|
8000ÀÚ°¡ ³Ñ´Â ¹®ÀÚ (0¿¡¼ 1,073,741,823)±ÛÀÚ±îÁö ÀúÀå°¡´É
|
ÀÌÁø
|
binary
|
0~8000
|
0~8000 ¹ÙÀÌÆ® ÀÌÇÏÀÇ ÀÌÁø°ª
|
varbinary
|
0~8000
|
0~8000 ¹ÙÀÌÆ® ÀÌÇÏÀÇ ÀÌÁø°ª
|
image
|
0~2G
|
8000¹ÙÀÌÆ®°¡ ³Ñ´Â ±×¸² µîÀÇ ÀÌÁø °ªÀ» ÀúÀåÇϴµ¥ À¯¿ë
0¿¡¼ (2,147,483,647)¹ÙÀÌÆ®±îÁö ÀúÀå°¡´É
|
ÈÆó
|
money
|
8
|
ÈÆó (-922,337,203,685,477.5608)ºÎÅÍ (922,337,203,685,477.5807)
|
smallmoney
|
4
|
ÈÆó (-214,748.3648ºÎÅÍ +214,748.3647)±îÁö °¡´É
|
Ư¼ö |
uniqueidentifier |
16 |
À¯ÀÏÇÑ ±¸ºÐÀÚ |
timestamp |
8 |
µ¥ÀÌÅͺ£À̽º ¾È¿¡¼ À¯ÀÏÇÑ ¼ö |
À̸ÞÀÏ ¹®ÀÇ : cak0280@nate.com
Copyright 2000 By ENTERSOFT.KR All Rights Reserved.
|
|