GET_TABLE_COLUMN_COUNT
Valid For
Extract and Replicat
Description
Use the GET_TABLE_COLUMN_COUNT function to retrieve the total number of columns in a table, including the number of key columns.
Syntax
#include "usrdecs.h" short result_code; table_def table; ERCALLBACK (GET_TABLE_COLUMN_COUNT, &table, &result_code);
Buffer
typedef struct
{
short num_columns;
short source_or_target;
/* Version 2 CALLBACK_STRUCT_VERSION */
short num_key_columns;
} table_def;Input
Output
Return Values
EXIT_FN_RET_INVALID_CONTEXT EXIT_FN_RET_INVALID_PARAM EXIT_FN_RET_OK