sqlite_fetch_single
SQLiteResult->fetchSingle
SQLiteUnbuffered->fetchSingle
Fetches the first column of a result set as a string
&reftitle.description;
stringsqlite_fetch_single
resourceresult
booldecode_binary
Object oriented style (method):
SQLiteResult
stringfetchSingle
booldecode_binary
SQLiteUnbuffered
stringfetchSingle
booldecode_binary
sqlite_fetch_single is identical to
sqlite_fetch_array except that it returns the value
of the first column of the rowset.
This is the most optimal way to retrieve data when you are only
interested in the values from a single column of data.
&reftitle.parameters;
result
The SQLite result resource. This parameter is not required when using
the object-oriented method.
decode_binary
&sqlite.decode-bin;
&reftitle.examples;
A sqlite_fetch_single example
0) {
echo sqlite_fetch_single($res); // 42
}
sqlite_close($dbhandle);
}
?>
]]>
&reftitle.seealso;
sqlite_fetch_array