GetColumnTypeName

Description

Retrieves the designated column's database-specific type name for a JSP Web target.

Applies to

PSCursorClass objects

Syntax

cursorobject.GetColumnTypeName ( int iCol )

Argument

Description

cursorobject

A variable that contains a reference to an instance of PSCursorClass

iCol

Number of the column for which you want to obtain the (database-specific) datatype name

Returns

String

Usage

Use this method to obtain the type name used by the database (such as int, datetime, varchar, and so on). If the column type is a user-defined type, then a fully-qualified type name is returned.

Examples

Example 1

The following example retrieves the database-specific type name of the fifth column in the object called “mycursor”:

column_typename = mycursor.GetColumnTypeName(5);

See also