Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

FM.QueryFieldsForTableName

Queries the field names of all fields in the given table.

Component Version macOS Windows Linux Server iOS SDK
FM FMSQL 3.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "FM.QueryFieldsForTableName"; TableName { ; FileName } )   More

Parameters

Parameter Description Example Flags
TableName The table name to query. "test"
FileName The database file name to look into.
If empty or missing, we look in current database.
(new in 6.2)
"Contacts" Optional

Result

Returns field names of fields separated by return.

Description

Queries the field names of all fields in the given table.
See also FM.QueryFieldsForBaseTableName.

Needs permissions to query your database schema via SQL.

Examples

Query field names for Contacts table:

MBS( "FM.QueryFieldsForTableName"; "Contacts" )

Query fields for contacts in contacts database:

MBS( "FM.QueryFieldsForTableName"; "Kontakte"; "Kontakte" )

Build quoted list of fields:

"\"" & substitute(MBS( "FM.QueryFieldsForTableName"; "Aufgaben" ); ¶; "\", \"") & "\""

See also

Release notes

Blog Entries

Created 18th August 2014, last changed 7th October 2020


FM.QueryFieldsForBaseTableName - FM.QueryTableNames

Feedback: Report problem or ask question.