Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - SQL Usage » Server Classes for Remote Data Access » JDBC-based server classes » Server class asejdbc

Server class asejdbc Next Page

Data type conversions: JDBC and Adaptive Server Enterprise


When you issue a CREATE TABLE statement, SQL Anywhere automatically converts the data types to the corresponding Adaptive Server Enterprise data types. The following table describes the SQL Anywhere to Adaptive Server Enterprise data type conversions.

SQL Anywhere data type Adaptive Server Enterprise default data type
bit bit
tinyint tinyint
smallint smallint
int int
integer integer
decimal [defaults p=30, s=6] numeric(30,6)
decimal(128,128) not supported
numeric [defaults p=30 s=6] numeric(30,6)
numeric(128,128) not supported
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(19,0)