dbGetColumnNameByIndex(3dba)


dbGetColumnNameByIndex -- return a field's name based on its column index

Synopsis

cc [flag ...] file ... -kthread -leels [library] ...
#include <eelsdba.h>

char *dbGetColumnNameByIndex( DBresult *result, int column);

Description

dbGetColumnNameByIndex returns the name of a database field based on its column index.

Arguments


result
(Input) A pointer to a DBResult structure returned from a previous call to dbQuery(3dba).

column
(Input) The column index of a database field.

Return values

If successful, dbGetColumnNameByIndex returns the field name. Otherwise, it returns NULL.

Diagnostics

An application can call dbGetError(3dba) to obtain the error message returned from the database.

References

dbGetColumnIndexByName(3dba), dbGetError(3dba), dbQuery(3dba), Intro(3dba)


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004