下表列出了如何将 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 |
SQL Anywhere Studio 9.0.2
版权所有 © 1989–2005 Sybase, Inc. 部分版权所有 © 2001–2005 iAnywhere Solutions, Inc. 保留所有权利。