下表列出了如何将 Adaptive Server Anywhere 或 UltraLite 数据类型映射为 Oracle 数据类型。
| Adaptive Server Anywhere 或 UltraLite 数据类型 | Oracle 数据类型 |
|---|---|
| bit | number(1,0) |
| tinyint | number(3,0) |
| smallint | number(5,0) |
| int | number(11,0) |
| integer | number(11,0) |
| bigint | number(20,0) |
| decimal(prec, scale) | number(prec, scale) |
| numeric(prec, scale) | number(prec, scale) |
| float | float |
| real | real |
| smallmoney | numeric(10,4) |
| money | number(19,4) |
| date | date |
| time | date |
| timestamp | date |
| smalldatetime | date |
| datetime | date |
| char(n) | varchar(n) 或 CLOB(n) |
| varchar(n) | varchar(n) 或 CLOB(n) |
| long varchar | CLOB |
| binary(n) | raw(n) 或 BLOB(n) |
| varbinary(n) | raw(n) 或 BLOB(n) |
| long binary | BLOB |
| uniqueidentifier | varchar2(n) 1 |
1 n 必须大于 36。
Oracle 8、8i 和 9i 中不再支持 LONG 数据类型。
要正确同步 Oracle LONG 数据类型,必须在 ODBC 数据源配置对话框中选中 Oracle Force Retrieval of Long Columns ODBC 选项。
SQL Anywhere Studio 9.0.2
版权所有 © 1989–2005 Sybase, Inc. 部分版权所有 © 2001–2005 iAnywhere Solutions, Inc. 保留所有权利。