Product Documentation

FairCom Direct SQL for C and C++

Previous Topic

Next Topic

ctsqlGetColumnLength

Retrieve the column length in bytes:

  • For character data types, the return value represents the data length in the number of bytes, including the null terminator. This field should be used for purposes of any memory allocation.
  • For other data types, the return value represents the number of bytes.

Declaration

INTEGER ctsqlGetColumnLength(pCTSQLCURSOR hCursor, INTEGER colnumber)

Description

ctsqlGetColumnLength() retrieves the column length.

  • hCursor the cursor handle.
  • colnumber the column number.

Return

ctsqlGetColumnLength() returns the column length in bytes.

See Also

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

TOCIndex