官术网_书友最值得收藏!

SQL Server data types

The SQL Server Database Engine utilizes a wide selection of data types. A data type is a definition of how a value is structured, stored, and handled. There are data types for any kind of structured, semi-structured, and non-structured type of data.

Structured data types are native SQL Server data types such as int, char, varchar, datetime, binary, varbinary, money, decimal, geography, geometry, location, and so on. Character-based data types support both non-unicode, char/varchar, and unicode, nchar/nvarchar.

Semi-structured data types, such as xml, store their data in a structured manner internally and is usually handled by the database engine as large objects, but at the same time offers flexibility to add custom functions and indexes to efficiently display its content.

Non-structured data types are usually referred to as large objects called blob (binary large objects) or clob (character large objects) and used to store large amounts of data such as documents and binaries in the database. Also, varbinary(max), varchar(max), and nvarchar (max) are seen as non-structured objects. From the 2016 version , SQL Server had used a more modern approach and adequate data types for dealing with non-structured data: polybase feature and support for JSON.

Every data type offers specific features for a specific use. When designing a database, it's important to choose the right data type for every column of a table.

主站蜘蛛池模板: 双流县| 滕州市| 同心县| 宁德市| 山西省| 耿马| 广元市| 洪泽县| 德惠市| 石台县| 施甸县| 永丰县| 论坛| 资兴市| 二连浩特市| 榆树市| 南江县| 丽水市| 尼勒克县| 鄂温| 当阳市| 新闻| 桑植县| 盱眙县| 利川市| 颍上县| 梧州市| 堆龙德庆县| 新乡市| 嵩明县| 板桥市| 嘉定区| 韶山市| 南川市| 平罗县| 紫云| 北京市| 精河县| 黎城县| 景宁| 梨树县|