Small. Fast. Reliable.
Choose any three.

SQLite C Interface

Number of columns in a result set

int sqlite3_data_count(sqlite3_stmt *pStmt);

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

Invariants:

H13771 After a call to sqlite3_step(S) that returns SQLITE_ROW, the sqlite3_data_count(S) routine will return the same value as the sqlite3_column_count(S) function.
H13772 After sqlite3_step(S) has returned any value other than SQLITE_ROW or before sqlite3_step(S) has been called on the prepared statement for the first time since it was prepared or reset, the sqlite3_data_count(S) routine returns zero.

See also lists of Objects, Constants, and Functions.


This page last modified 2008/08/04 14:33:39 UTC