Return column information for the specified column number in the open cursor.
RETCODE dbcursorcolinfo(hcursor, column, colname, coltype, collen, usertype) DBCURSOR *hcursor DBINT column; DBCHAR *colname; DBINT *coltype; DBINT *collen; DBINT *usertype;
Cursor handle created by dbcursoropen.
Column number for which information is to be returned.
Location where the name of the column is returned. The user should allocate space large enough to accommodate the column name.
Location where the column’s datatype is returned.
Location where the column’s maximum length is returned.
Location where the column’s user-defined datatype is returned.
SUCCEED or FAIL.
Any of the parameters colname, coltype, collen, or usertype can be set to NULL, in which case the information for that variable is not returned.
For more information on cursors, see Appendix A, “Cursors”
dbcursor, dbcursorbind, dbcursorclose, dbcursorfetch, dbcursorinfo, dbcursoropen