Interested in improving this site? Please check the To Do page.
sqlite.getColumnCount
Retrieve the number of columns returned from an SQLite query.
Syntax
sqlite.getColumnCount(queryID)
Params
queryID is the query ID returned by sqlite.compileQuery.
Returns
The number of columns in the result set returned by the prepared SQL statement
Examples
on getRowColumnNames (queryID) {
local (i, count, resultList={});
count = sqlite.getColumnCount(queryID);
for i = 1 to count {
resultList[i] = sqlite.getColumnName(queryID, i)};
return resultList}
Notes
Returns 0 the query is an SQL statement that does not return data (for example an UPDATE).