|
PHP5中文手册
sqlite_array_querySQLiteDatabase->arrayQuery(No version information available, might be only in CVS) SQLiteDatabase->arrayQuery — Execute a query against a given database and returns an array 说明
array sqlite_array_query
( resource $dbhandle
, string $query
[, int $result_type
[, bool $decode_binary
]] )
array sqlite_array_query
( string $query
, resource $dbhandle
[, int $result_type
[, bool $decode_binary
]] )
Object oriented style (method): SQLiteDatabase
array arrayQuery
( string $query
[, int $result_type
[, bool $decode_binary
]] )
sqlite_array_query() executes the given query and returns an array of the entire result set. It is similar to calling sqlite_query() and then sqlite_fetch_array() for each row in the result set. sqlite_array_query() is significantly faster than the aforementioned. Tip
sqlite_array_query() is best suited to queries returning 45 rows or less. If you have more data than that, it is recommended that you write your scripts to use sqlite_unbuffered_query() instead for more optimal performance. 参数
返回值Returns an array of the entire result set; FALSE otherwise. 由 SQLITE_ASSOC 和 SQLITE_BOTH 返回的列名会根据 sqlite.assoc_case 配置选项的值来决定大小写。 范例
Example#1 Procedural style
<?php
Example#2 Object-oriented style
<?php |