dbcolsource

Description

Return a pointer to the name of the database column from which the specified regular result column was derived.

Syntax

char *dbcolsource(dbproc, colnum)
 
DBPROCESS   *dbproc;
int                       colnum;

Parameters

dbproc

A pointer to the DBPROCESS structure that provides the connection for a particular front-end/server process. It contains all the information that DB-Library uses to manage communications and data between the front end and server.

colnum

The number of the result column of interest. Column numbers start at 1.

Returns

A pointer to a null-terminated column name. This pointer will be NULL if the column number is out of range or if the column is the result of a SQL expression, such as max(colname).

Usage

See also

dbcolbrowse, dbqual, dbtabbrowse, dbtabcount, dbtabname, dbtabsource, dbtsnewlen, dbtsnewval, dbtsput