下表列出了如何将 Adaptive Server Anywhere 或 UltraLite 数据类型映射为 Adaptive Server Enterprise 数据类型。
| Adaptive Server Anywhere 或 UltraLite 数据类型 | Adaptive Server Enterprise 数据类型 |
|---|---|
| bit | bit |
| tinyint | tinyint |
| smallint | smallint |
| int | int |
| integer | integer |
| decimal [defaults p=30, s=6] | numeric(30,6) |
| numeric [defaults p=30 s=6] | numeric(30,6) |
| float | real |
| real | real |
| double | float |
| smallmoney | numeric(10,4) |
| money | numeric(19,4) |
| date | datetime |
| time | datetime |
| timestamp | datetime |
| smalldatetime | datetime |
| datetime | datetime |
| char(n) | varchar(n) |
| character(n) | varchar(n) |
| varchar(n) | varchar(n) |
| character varying(n) | varchar(n) |
| long varchar | text |
| text | text |
| binary(n) | binary(n) |
| long binary | image |
| image | image |
| bigint | numeric(20,0) |
| uniqueidentifier | varchar(n) 1 |
1 n 必须大于 36。
SQL Anywhere Studio 9.0.2
版权所有 © 1989–2005 Sybase, Inc. 部分版权所有 © 2001–2005 iAnywhere Solutions, Inc. 保留所有权利。