Skip to main content

OdbcType (Class Keyword)

Specifies the type used when this data type is exposed via ODBC or JDBC. Every data type class must specify an ODBC type. This keyword applies only to data type classes.

Usage

To specify the type to use when this data type is projected via ODBC or JDBC, use the following syntax:

Class MyApp.MyString [ ClassType = DataType, OdbcType = odbctype ]  { //class members }

Where odbctype is one of the following:

  • BIGINT

  • BIT

  • DATE

  • DOUBLE

  • INTEGER

  • LONGVARBINARY

  • LONGVARCHAR

  • NUMERIC

  • RESULTSET

  • SMALLINT

  • STRUCT

  • TIME

  • TIMESTAMP

  • TINYINT

  • VARBINARY

  • VARCHAR (default)

Details

This keyword specifies the type used when exposed via ODBC or JDBC.

Every data type class must specify an ODBC type.

Effect on Subclasses

This keyword is inherited from the primary superclass. The subclass can override the value of the keyword.

Default

If you omit this keyword, the ODBC type is VARCHAR.

See Also

FeedbackOpens in a new tab