update : 2015.11.03
php.shukuma.com검색:
|
sqlite_array_querySQLiteDatabase::arrayQuery(PHP 5 < 5.4.0, PECL sqlite >= 1.0.0) sqlite_array_query -- SQLiteDatabase::arrayQuery — Execute a query against a given database and returns an array 설명
array sqlite_array_query
( resource
$dbhandle
, string $query
[, int $result_type = SQLITE_BOTH
[, bool $decode_binary = true
]] )
array sqlite_array_query
( string
$query
, resource $dbhandle
[, int $result_type = SQLITE_BOTH
[, bool $decode_binary = true
]] )객체 기반 형식 (method):
public array SQLiteDatabase::arrayQuery
( string
$query
[, int $result_type = SQLITE_BOTH
[, bool $decode_binary = true
]] )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;
예제
Example #1 절차식 형식
<?php
Example #2 Object-oriented style
<?php 참고
|