f2s_table_column_count¶

Applies to: MySql/MariaDB

Syntax

**There is no set_attribute.  This attribute is read only.**
get_attribute f2s_table_column_count of {FileNumber} to {variable}

Parameter

Description

FileNumber

Number of the file (filename.File_Number)

variable

The number of fields in the table on the SQL backend

Description

This attribute is used to get the number of fields or columns in the given table. Note that this is referring to the columns in the SQL backend and may not necessarily reflect the number of columns in DataFlex.

Example

get_attribute

int iNumCol
get_attribute f2s_table_column_count of Customer.FileNumber to iNumCol

Related Attributes

ESQL Equivalents

Replaces: DF_FETCH_FIELD_COUNT