mssql数据类型(国外英文资料).doc
文本预览下载声明
mssql数据类型(国外英文资料)
MSSQL data type
There are two characteristics of data in a computer: type and length. A data type is the type of data that is divided by data representation and storage.
Data types are available in SQL Server for each variable, parameter, expression, and so on. The data types provided by the system fall into several broad categories, as shown in table 4-2.
Among them, BIGINT, SQL_VARIANT, and TABLE are the three new data types added in SQL Server 2000. The following categories describe various types of data.
4.3.1 integer data type
Integer data types are one of the most commonly used data types.
1, INT (INTEGER)
INT (or INTEGER) data type storage from 31-2 to the power (2, 147, 483, 147) to 2 31 minus 1, 2, 147, 483647) between all the positive and negative integers. The data for each INT is stored in four bytes, one of which represents the positive and negative number of the integer value, and the other 31 indicates the length and size of the integer value.
2, SMALLINT,
The SMALLINT data type stores all positive and negative integers from -2 to the 15th (-32, 768) to 2 to the 15th -1 (32, 767). Each SMALLINT type data takes up two bytes of storage space, one of which represents the positive and negative Numbers of the integer value, and the other 15 represent the length and size of the integer value.
3, TINYINT
The TINYINT data type stores all positive integers from 0 to 255. Each TINYINT type data takes up a byte of storage space.
4, BIGINT,
BIGINT data type storage from 63-2 ^ (9, 223, 372, 036, 854, 775, 807) to 2 ^ 63-1 (9, 223, 372, 223, 372, 775, 807) between all of the positive and negative integers. Each BIGINT type of data takes up 8 bytes of storage space.
4.3.2 floating point data type
Floating-point data types are used to store decimal Numbers. The data for floating-point values is stored in the SQL Server in a Round up or in a no. Rounding on refers to, when (and only if) to rounding a number is not null, to reserve the digital part o
显示全部