数字类型
bight | 8字节 |
---|---|
int | 4字节 |
smallint | 2字节 |
tinyint | 1字节 |
float | 取决于n的值 |
时间类型
time | 12:35:29.1234567(秒后七位) |
---|---|
date | 2000-04-07 |
smalldatetime | 2000-04-07 14:07:00 |
datetime | 2000-04-07 08:04:20.123 |
datetime2 | 2000-04-07 08:04:20.1234567 |
字符串类型
char[n] | 固定长度,n定义字符串长度,而且必须在1~8000之间 |
---|---|
varchar[n] | 可变长度,n定义字符串长度 |
nchar[n] | 固定长度的Unicode字符串数据,n定义字符串长度,必须在1~4000之间 |
nvarchar[n] | 可变长度的Unicode字符串数据,n定义字符串长度 |