|
字段类型 | 描述 | 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) |
|
|
一共有 5 条评论