枚举 UltraLite.NET 数据库数据类型。
Public Enum ULDbType
public enum ULDbType
成员名称 | 说明 | 值 |
---|---|---|
BigInt |
有符号 64 位整数。 |
5 |
Binary |
二进制数据,具有指定的最大长度。 枚举值 Binary 和 VarBinary 互为对方的别名。 |
15 |
Bit |
1 位标志。 |
8 |
Char |
字符数据,具有指定长度。 在 UltraLite.NET 中,此类型始终支持 Unicode 字符。类型 Char 和 VarChar 完全兼容。 |
0 |
Date |
日期信息。 |
10 |
DateTime |
时间戳信息(日期、时间)。 枚举值 DateTime 和 TimeStamp 互为对方的别名。 |
9 |
Decimal |
精确数字数据,具有指定的精度和小数位数。 枚举值 Decimal 和 Numeric 互为对方的别名。 |
14 |
Double |
双精度浮点数(8 个字节)。 |
12 |
Float |
单精度浮点数(4 个字节)。 枚举值 Float 和 Real 互为对方的别名。 |
13 |
Integer |
无符号 32 位整数。 |
1 |
LongBinary |
二进制数据,具有可变长度。 |
18 |
LongVarchar |
字符数据,具有可变长度。 在 UltraLite.NET 中,此类型始终支持 Unicode 字符。 |
17 |
Numeric |
精确数字数据,具有指定的精度和小数位数。 枚举值 Decimal 和 Numeric 互为对方的别名。 |
14 |
Real |
单精度浮点数(4 个字节)。 枚举值 Float 和 Real 互为对方的别名。 |
13 |
SmallInt |
有符号 16 位整数。 |
3 |
STGeometry |
ST 几何信息。 |
ULNET_TYPE_ST_GEOMETRY |
Time |
时间信息。 |
11 |
TimeStamp |
时间戳信息(日期、时间)。 枚举值 DateTime 和 TimeStamp 互为对方的别名。 |
9 |
TimeStampWithTimeZone |
时间戳信息(日期、时间)及时区偏移。 |
ULNET_TYPE_TIMESTAMP_WITH_TIME_ZONE |
TinyInt |
无符号 8 位整数。 |
7 |
UniqueIdentifier |
通用唯一标识符(Universally Unique Identifier,简称 UUID/GUID)。 |
19 |
UnsignedBigInt |
无符号 64 位整数。 |
6 |
UnsignedInt |
无符号 32 位整数。 |
2 |
UnsignedSmallInt |
无符号 16 位整数。 |
4 |
VarBinary |
二进制数据,具有指定的最大长度。 枚举值 Binary 和 VarBinary 互为对方的别名。 |
15 |
VarChar |
字符数据,具有指定的最大长度。 在 UltraLite.NET 中,此类型始终支持 Unicode 字符。类型 Char 和 VarChar 完全兼容。 |
16 |
下表列出了与每种 ULDbType 兼容的 .NET 类型。对于整型而言,表列始终都可以使用较小的整型来进行设置;但只要实际值在该类型取值范围之内,也可以使用较大的整型来进行设置。
ULDbType | 兼容的 .NET 类型 | C# 内置类型 | Visual Basic 内置类型 |
---|---|---|---|
Binary, VarBinary | System.Byte[],或 System.Guid(如果大小为 16) | byte[] | Byte() |
Bit | System.Boolean | bool | Boolean |
Char, VarChar | System.String | String | String |
Date | System.DateTime | DateTime(无内置类型) | Date |
Double | System.Double | double | Double |
LongBinary | System.Byte[] | byte[ ] | Byte() |
LongVarchar | System.String | String | String |
Decimal, Numeric | System.String | decimal | Decimal |
Float, Real | System.Single | float | Single |
BigInt | System.Int64 | long | Long |
Integer | System.Int32 | int | Integer |
SmallInt | System.Int16 | short | Short |
STGeometry | System.String | String | String |
Time | System.TimeSpan | TimeSpan(无内置类型) | TimeSpan(无内置类型) |
DateTime, TimeStamp | System.DateTime | DateTime(无内置类型) | Date |
TimeStampWithTimeZone | System.String | String | String |
TinyInt | System.Byte | byte | Byte |
UnsignedBigInt | System.UInt64 | ulong | UInt64(无内置类型) |
UnsignedInt | System.UInt32 | uint | UInt32(无内置类型) |
UnsignedSmallInt | System.UInt16 | ushort | UInt16(无内置类型) |
UniqueIdentifier | System.Guid | Guid(无内置类型) | Guid(无内置类型) |
长度为 16 的二进制列与 UniqueIdentifier 类型完全兼容。
![]() |
使用DocCommentXchange讨论此页。
|
版权 © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |