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)  可变长度的二进制数据
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章