dbGetColumnIndexByName(3dba)


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

Synopsis

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

int dbGetColumnIndexByName( DBresult *result, char *name);

Description

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

Arguments


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

name
(Input) The name of a database field.

Return values

If successful, dbGetColumnIndexByName returns the field index. Otherwise, it returns -1.

Diagnostics

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

References

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


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