Collection Contents 上一页 下一页 PDF

MobiLink 管理指南

数据类型转换

Microsoft SQL Server 数据映射


下表列出了如何将 Adaptive Server Anywhere 或 UltraLite 数据类型映射为 Microsoft SQL Server 数据类型。

Adaptive Server Anywhere 或 UltraLite 数据类型 Microsoft SQL Server 数据类型
bit bit
tinyint tinyint
smallint smallint
int int
integer int
bigint numeric(20,0) 或 bigint(仅适用于 SQL Server 2000)
decimal [defaults p=30, s=6] decimal(30, 6)
numeric [defaults p=30 s=6] numeric(30, 6)
float float
real real
smallmoney smallmoney
money money
date datetime
time datetime
timestamp datetime
smalldatetime datetime
datetime datetime
char(n) varchar(n) 或 text
character(n) varchar(n)
varchar(n) varchar(n) 或 text
long varchar text
binary(n) binary(n) 或 image
long binary image
double float
uniqueidentifier uniqueidentifier

Collection Contents 上一页 下一页 PDF