Small. Fast. Reliable.
Choose any three.

About Sitemap Documentation Download License News Developers Support

## 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.

### Invariants:

F13771 | 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.
F13772 | 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/05/12 13:08:44 UTC