sql數據類型
bit 1個字節的1/8:0或1
tinyint 1個字節的整數
smallint 2個字節的整數
int 4個字節的整數
bigint 8個字節的整數
numeric(p,s) 9個字節的浮點數(總位數,小數位數)
decimal(p,s) 5個字節的浮點數(總位數,小數位數)
money 8個字節貨幣數據
smallmoney 4個字節貨幣數據
float 4/8個字節的浮點數
real 4個字節的浮點數
datetime 8個字節存儲日期和時間(精確到毫秒)
smalldatetime 4個字節存儲日期和時間(精確到分)
dec 13/17個字節的浮點數
char(n) n的取值爲1到8000的非unicode(固定長度)
nchar(n) n的取值爲1到4000的unicode(固定長度)
varchar(n) n的取值爲1到8000的非unicode(可變長度)
nvarchar(n) n的取值爲1到4000的unicode(可變長度)
text 非unicode(可變長度)
ntext unicode(可變長度)
binary(n) 固定長度的二進制數據
varbinary(n) 可變長度的二進制數據
tinyint 1個字節的整數
smallint 2個字節的整數
int 4個字節的整數
bigint 8個字節的整數
numeric(p,s) 9個字節的浮點數(總位數,小數位數)
decimal(p,s) 5個字節的浮點數(總位數,小數位數)
money 8個字節貨幣數據
smallmoney 4個字節貨幣數據
float 4/8個字節的浮點數
real 4個字節的浮點數
datetime 8個字節存儲日期和時間(精確到毫秒)
smalldatetime 4個字節存儲日期和時間(精確到分)
dec 13/17個字節的浮點數
char(n) n的取值爲1到8000的非unicode(固定長度)
nchar(n) n的取值爲1到4000的unicode(固定長度)
varchar(n) n的取值爲1到8000的非unicode(可變長度)
nvarchar(n) n的取值爲1到4000的unicode(可變長度)
text 非unicode(可變長度)
ntext unicode(可變長度)
binary(n) 固定長度的二進制數據
varbinary(n) 可變長度的二進制數據
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.