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: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

FM.QueryTableNames

Queries the table names of all files currently open.

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

(old name: FM.QueryTables)

Parameters

Parameter Description Example Flags
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 names of tables separated by return.

Description

Queries the table names of all files currently open.
May be limited to what you are allowed to access.
See also FM.QueryBaseTableNames, which is usually faster.

Needs permissions to query your database schema via SQL.

Examples

Query tables in database Kontakte:

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

See also

Blog Entries

This function checks for a license.

Created 18th August 2014, last changed 16th September 2021


FM.QueryFieldsForTableName - FM.RunDatabaseDesignReport

💬 Ask a question or report a problem