From 18657a960e125336f704ea058e25c27bd3900dcb Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 5 May 2024 19:28:19 +0200 Subject: Adding upstream version 3.40.1. Signed-off-by: Daniel Baumann --- www/c3ref/column_name.html | 154 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 154 insertions(+) create mode 100644 www/c3ref/column_name.html (limited to 'www/c3ref/column_name.html') diff --git a/www/c3ref/column_name.html b/www/c3ref/column_name.html new file mode 100644 index 0000000..3f2bea5 --- /dev/null +++ b/www/c3ref/column_name.html @@ -0,0 +1,154 @@ + + + + + +Column Names In A Result Set + + + +
+ + + +
+
+Small. Fast. Reliable.
Choose any three. +
+ + +
+
+ + + +
+
+
+ + +
+

SQLite C Interface

+

Column Names In A Result Set

+
+
+const char *sqlite3_column_name(sqlite3_stmt*, int N);
+const void *sqlite3_column_name16(sqlite3_stmt*, int N);
+
+

+These routines return the name assigned to a particular column +in the result set of a SELECT statement. The sqlite3_column_name() +interface returns a pointer to a zero-terminated UTF-8 string +and sqlite3_column_name16() returns a pointer to a zero-terminated +UTF-16 string. The first parameter is the prepared statement +that implements the SELECT statement. The second parameter is the +column number. The leftmost column is number 0.

+ +

The returned string pointer is valid until either the prepared statement +is destroyed by sqlite3_finalize() or until the statement is automatically +reprepared by the first call to sqlite3_step() for a particular run +or until the next call to +sqlite3_column_name() or sqlite3_column_name16() on the same column.

+ +

If sqlite3_malloc() fails during the processing of either routine +(for example during a conversion from UTF-8 to UTF-16) then a +NULL pointer is returned.

+ +

The name of a result column is the value of the "AS" clause for +that column, if there is an AS clause. If there is no AS clause +then the name of the column is unspecified and may change from +one release of SQLite to the next. +

See also lists of + Objects, + Constants, and + Functions.

+ -- cgit v1.2.3