xref: /netbsd-src/external/public-domain/sqlite/man/sqlite3_column_count.3 (revision b9988867a8ad969c45a52aa7628bc932ec98d46b)
1.Dd January 24, 2024
2.Dt SQLITE3_COLUMN_COUNT 3
3.Os
4.Sh NAME
5.Nm sqlite3_column_count
6.Nd number of columns in a result set
7.Sh SYNOPSIS
8.In sqlite3.h
9.Ft int
10.Fo sqlite3_column_count
11.Fa "sqlite3_stmt *pStmt"
12.Fc
13.Sh DESCRIPTION
14Return the number of columns in the result set returned by the prepared statement.
15If this routine returns 0, that means the prepared statement
16returns no data (for example an UPDATE).
17However, just because this routine returns a positive number does not
18mean that one or more rows of data will be returned.
19A SELECT statement will always have a positive sqlite3_column_count()
20but depending on the WHERE clause constraints and the table content,
21it might return no rows.
22.Pp
23.Sh IMPLEMENTATION NOTES
24These declarations were extracted from the
25interface documentation at line 4776.
26.Bd -literal
27SQLITE_API int sqlite3_column_count(sqlite3_stmt *pStmt);
28.Ed
29.Sh SEE ALSO
30.Xr sqlite3_data_count 3 ,
31.Xr sqlite3_stmt 3
32