int sqlite3_data_count(sqlite3_stmt *pStmt);
R-20643-25656:[The sqlite3_data_count(P) interface returns the number of columns in the current row of the result set of prepared statement P. ] R-59498-62062:[If prepared statement P does not have results ready to return (via calls to the sqlite3_column() family of interfaces) then sqlite3_data_count(P) returns 0. ] R-18465-63076:[The sqlite3_data_count(P) routine also returns 0 if P is a NULL pointer. ] R-47358-05964:[The sqlite3_data_count(P) routine returns 0 if the previous call to sqlite3_step(P) returned SQLITE_DONE. ] R-13480-46087:[The sqlite3_data_count(P) will return non-zero if previous call to sqlite3_step(P) returned SQLITE_ROW, except in the case of the PRAGMA incremental_vacuum where it always returns zero since each step of that multi-step pragma returns 0 columns of data. ]
See also: sqlite3_column_count()