Contents Index GetColumnType method GetSQLCode method pdf/preface.pdf

UltraLite User's Guide
  C++ API Reference
    ULCursor class

GetColumnSQLType method


Prototype 

int  GetColumnSQLType( ul_column_num column-index )

Description 

Returns the SQL data type of the specified column.

Parameters 

column-index    The number of the column. The first column in the table or result set has a value of one.

Returns 

The column type is a member of the UltraLite data types enumeration. For more information, see Data types enumeration:

Example 

The following example gets the column type for the third column in the table tb:

tb.Open( &conn );
colType = tb.GetColumnType( 3 );
See also 

Data types enumeration

Get generated method

GetColumnType method


Contents Index GetColumnType method GetSQLCode method pdf/preface.pdf