Interested in improving this site? Please check the To Do page.
mysql.getColumnCount
Get the number of columns from the most recent query.
Syntax
mysql.getColumnCount(dbid)
Params
A database connection ID
Returns
Mumber corresponding to the column count
Examples
count = mysql.getColumnCount(id) ยป 15
Notes
MySQL calls these fields, but it's clearer for the purposes of the returned SQL table to think of them as columns, which also matches the SQLite implementation.