【转载】.NET Framework Class LibrarySqlDbType Enumeration

本文详细介绍了SQL Server中各种数据类型的特性及使用范围,包括数值型、字符型、日期时间型等,为数据库设计提供全面的指导。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

原文地址:.NET Framework Class LibrarySqlDbType Enumeration

Member nameDescription
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkBigIntInt64. A 64-bit signed integer.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkBinaryArray of type Byte. A fixed-length stream of binary data ranging between 1 and 8,000 bytes.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkBitBoolean. An unsigned numeric value that can be 0, 1, or nullNothingnullptra null reference (Nothing in Visual Basic).
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkCharString. A fixed-length stream of non-Unicode characters ranging between 1 and 8,000 characters.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkDateTimeDateTime. Date and time data ranging in value from January 1, 1753 to December 31, 9999 to an accuracy of 3.33 milliseconds.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkDecimalDecimal. A fixed precision and scale numeric value between -10 38 -1 and 10 38 -1.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkFloatDouble. A floating point number within the range of -1.79E +308 through 1.79E +308.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkImageArray of type Byte. A variable-length stream of binary data ranging from 0 to 2 31 -1 (or 2,147,483,647) bytes.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkIntInt32. A 32-bit signed integer.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkMoneyDecimal. A currency value ranging from -2 63 (or -9,223,372,036,854,775,808) to 2 63 -1 (or +9,223,372,036,854,775,807) with an accuracy to a ten-thousandth of a currency unit.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkNCharString. A fixed-length stream of Unicode characters ranging between 1 and 4,000 characters.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkNTextString. A variable-length stream of Unicode data with a maximum length of 2 30 - 1 (or 1,073,741,823) characters.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkNVarCharString. A variable-length stream of Unicode characters ranging between 1 and 4,000 characters. Implicit conversion fails if the string is greater than 4,000 characters. Explicitly set the object when working with strings longer than 4,000 characters.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkRealSingle. A floating point number within the range of -3.40E +38 through 3.40E +38.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkUniqueIdentifierGuid. A globally unique identifier (or GUID).
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkSmallDateTimeDateTime. Date and time data ranging in value from January 1, 1900 to June 6, 2079 to an accuracy of one minute.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkSmallIntInt16. A 16-bit signed integer.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkSmallMoneyDecimal. A currency value ranging from -214,748.3648 to +214,748.3647 with an accuracy to a ten-thousandth of a currency unit.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkTextString. A variable-length stream of non-Unicode data with a maximum length of 2 31 -1 (or 2,147,483,647) characters.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkTimestampArray of type Byte. Automatically generated binary numbers, which are guaranteed to be unique within a database. timestamp is used typically as a mechanism for version-stamping table rows. The storage size is 8 bytes.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkTinyIntByte. An 8-bit unsigned integer.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkVarBinaryArray of type Byte. A variable-length stream of binary data ranging between 1 and 8,000 bytes. Implicit conversion fails if the byte array is greater than 8,000 bytes. Explicitly set the object when working with byte arrays larger than 8,000 bytes.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkVarCharString. A variable-length stream of non-Unicode characters ranging between 1 and 8,000 characters.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkVariantObject. A special data type that can contain numeric, string, binary, or date data as well as the SQL Server values Empty and Null, which is assumed if no other type is declared.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkXmlAn XML value. Obtain the XML as a string using the GetValue method or Value property, or as an XmlReader by calling the CreateReader method.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkUdtA SQL Server 2005 user-defined type (UDT).
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkStructuredA special data type for specifying structured data contained in table-valued parameters.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkDateDate data ranging in value from January 1,1 AD through December 31, 9999 AD.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkTimeTime data based on a 24-hour clock. Time value range is 00:00:00 through 23:59:59.9999999 with an accuracy of 100 nanoseconds. Corresponds to a SQL Server time value.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkDateTime2Date and time data. Date value range is from January 1,1 AD through December 31, 9999 AD. Time value range is 00:00:00 through 23:59:59.9999999 with an accuracy of 100 nanoseconds.
Supported by the .NET Compact FrameworkSupported by the XNA FrameworkDateTimeOffsetDate and time data with time zone awareness. Date value range is from January 1,1 AD through December 31, 9999 AD. Time value range is 00:00:00 through 23:59:59.9999999 with an accuracy of 100 nanoseconds. Time zone value range is -14:00 through +14:00.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值