revDatabaseColumnNames | ||||||||||
Type | function | |||||||||
Dictionary | LCS | |||||||||
Library | LiveCode Script | |||||||||
Syntax |
| |||||||||
Synonyms | revdb_columnnames | |||||||||
Associations | database library | |||||||||
Summary | Returns the list of database field names in a record set or a database table | |||||||||
Introduced | 1.1 | |||||||||
Changes | The ability to obtain the list of fields for a table without obtaining a record set first was added in version 2.9 | |||||||||
OS | mac, windows, linux, ios, android | |||||||||
Platforms | desktop, server, mobile | |||||||||
Parameters |
| |||||||||
Example |
| |||||||||
Values |
| |||||||||
Related | Keyword: string Control Structure: function Function: revDatabaseColumnCount, revDatabaseColumnNamed, revDatabaseColumnTypes, revDatabaseColumnIsNull Library: Database library Glossary: LiveCode custom library, database field, Standalone Application Settings, standalone application, record set, return, SQL query | |||||||||
Security | disk, network | |||||||||
Description | Use the revDatabaseColumnNames function to find out what database fields are in the record set returned by a SQL query or what database fields are contained within a certain table. There are two forms of the revDatabaseColumnNames function. It can either be used to return the list of column names in a record set, or as of version 2.9, the list of columns in a given table. To get the list of columns in a record set use a form like this:
To get the list of columns in a given table, use a form like this:
If the operation is not successful, the revDatabaseColumnNames function returns an error message that begins with the string "revdberr".
| |||||||||
Tags | database |