Product Documentation

FairCom Direct SQL for C and C++

Previous Topic

Next Topic

ctsqlGetColumnTitle

Retrieve the column name.

Declaration

CTSQLCHAR* ctsqlGetColumnName(pCTSQLCURSOR hCursor, INTEGER colnumber)

CTSQLRET ctsqlDECL ctsqlGetColumnTitle(pCTSQLCURSOR hCursor, INTEGER colnumber, CTSQLCHAR* colname, int size);

Description

ctsqlGetColumnTitile() retrieves the column title, given its number.

  • hCursor the cursor handle.
  • colnumber the column number.
  • colname the column title returned.
  • size the length of the column title parameter.

Return

ctsqlGetColumnTitile() returns the column title, or NULL if the column number is wrong or if there is any problem with the cursor handle.

See Also

ctsqlGetColumnNameLen(), ctsqlGetColumnCount(), ctsqlGetColumnType(), ctsqlGetColumnLength(), ctsqlGetColumnName(), ctsqlGetColumnPrecision(), ctsqlGetColumnScale()

TOCIndex