Interested in improving this site? Please check the To Do page.
sqlite.getRowColumnNames
Retrieve an entire row in an SQLite query
Syntax
sqlite.getRowColumnNames(queryID)
Params
queryID is the query ID returned by sqlite.compileQuery.
Returns
A Frontier list containing the names of the columns as a result of the query.
Examples
on rowNameTest () {
local (db, result, compiledQuery, rowcount=0, i, columnType, columnCount);
local (columnName, value, columnTypeString, rowList, dataset="");
db = sqlite.open("C:\\temp\\testdatabase.db3");
compiledQuery = sqlite.compileQuery(db, "select * from verbs");
result = sqlite.stepQuery(compiledQuery);
rowList = sqlite.getRowColumnNames(compiledQuery);
sqlite.clearQuery(compiledQuery);
dialog.alert(rowList);
result = sqlite.close(db)}
Notes
The output is a list of names. Remember: queries don’t always return all the rows in a table. This is the best way to determine the names of the actual columns returned.