The data you enter into your Sybase IQ database will likely come from diverse sources.
Not all of your data will match the Sybase IQ data types exactly. Some of it will need to be converted. Data is converted in two ways: explicitly and implicitly. For example, to insert INT data into a CHAR column you must convert it explicitly.
When you insert data selected from another column in the same database
When you insert data selected from another database
When you load data from a flat file
In the LOAD TABLE statement, you convert data explicitly by specifying a format in the column-spec.
In the INSERT statement, you convert data explicitly using the data conversion functions CAST, CONVERT, and DATEPART in the SELECT statement or VALUES list.
While most Sybase IQ data types are fully compatible with SQL Anywhere and Adaptive Server Enterprise data types of the same name, there are some differences.
DECIMAL is a synonym for NUMERIC.
INTEGER is a synonym for INT.
DATETIME is a synonym for TIMESTAMP.
FLOAT (precision) is a synonym for REAL or DOUBLE, depending on the value of precision. For Adaptive Server Enterprise, REAL is used for precision less than or equal to 15, and DOUBLE for precision greater than 15. For Sybase IQ and SQL Anywhere, the cutoff is platform-dependent, but on all platforms the cutoff value is greater than 22.
MONEY is an Adaptive Server Enterprise-compatible synonym for NUMERIC(19,4), allowing NULL.
SMALLMONEY is an Adaptive Server Enterprise-compatible synonym for NUMERIC(10,4), allowing NULL.