Small. Fast. Reliable.
Choose any three.

SQLite C Interface

Number of columns in a result set

int sqlite3_data_count(sqlite3_stmt *pStmt);

Return the number of values in the current row of the result set.

After a call to sqlite3_step() that returns SQLITE_ROW, this routine will return the same value as the sqlite3_column_count() function.

After sqlite3_step() has returned an SQLITE_DONE, SQLITE_BUSY, or a error code, or before sqlite3_step() has been called on the prepared statement for the first time, this routine returns zero.

See also lists of Objects, Constants, and Functions.


This page last modified 2007/12/14 14:37:57 UTC