Data Types

Table 13-2 shows how the Paradox data types are mapped to the standard ODBC data types. It also identifies the types supported by Paradox versions 4.x, 5.x, and higher. These Paradox data types can be used in a Create Table statement. See "Create Table Statement" for the syntax of the Create Table statement.

Table 13-2. Paradox Data Types 


Paradox


ODBC

4.x Support
5.x and Higher Support
Alpha
SQL_CHAR
Yes
Yes
AutoIncrement
SQL_INTEGER
No
Yes
BCD
SQL_DECIMAL
No
Yes
Binary*
SQL_LONGVARBINARY
Yes
Yes
Bytes*
SQL_BINARY
No
Yes
Date
SQL_TYPE_DATE
Yes
Yes
Formatted Memo*
SQL_LONGVARBINARY
Yes
Yes
Graphic*
SQL_LONGVARBINARY
Yes
Yes
Logical*
SQL_BIT
No
Yes
Long Integer
SQL_INTEGER
No
Yes
Memo*
SQL_LONGVARCHAR
Yes
Yes
Money
SQL_DOUBLE
Yes
Yes
Number
SQL_DOUBLE
Yes
Yes
OLE*
SQL_LONGVARBINARY
Yes
Yes
Short
SQL_SMALLINT
No
Yes
Time
SQL_TYPE_TIME
No
Yes
TimeStamp
SQL_TYPE_TIMESTAMP
No
Yes
* Cannot be used in an index. Of these types, only Logical can be used in a Where clause.

See "Retrieving Data Type Information" for information about retrieving data types.