PHP Manuál | ||
---|---|---|
Predchádzajúci | Nasledujúci |
(PHP 5)
sqlite_array_query(no version information, might be only in CVS)
SQLiteDatabase->arrayQuery -- Execute a query against a given database and returns an arrayObject oriented style (method):
class SQLiteDatabase {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.
The query to be executed.
The SQLite Database resource; returned from sqlite_open () when used procedurally. This parameter is not required when using the object-oriented method.
Volite�n� result_type parameter akceptuje kon�tantu a ur�uje ako sa bude vr�ten� pole indexova�. Pou�itie SQLITE_ASSOC vr�ti iba asociat�vne indexy (naz�van� polia) zatia��o SQLITE_NUM vr�ti iba ��seln� indexy (r�dov� ��sla po�a). SQLITE_BOTH vr�ti obe asociat�vne a ��seln� indexy. SQLITE_BOTH je v�chodzia pre t�to funkciu.
Ke� sa decode_binary parameter nastav� na TRUE (default), PHP dek�duje k�dovanie bin�rneho s�boru, ktor� aplikoval na d�ta, ak bol zak�dovan� pomocou sqlite_escape_string(). T�to hodnotu by ste mali ponecha� vo svojom v�chodzom stave, pokia� nespolupracujete s datab�zami vytvoren�mi in�mi sqlite schopn�mi aplik�ciami.
Poznámka: S� podporovan� dva alternat�vne syntaxe kv�li kompatibilite s in�mi datab�zov�mi roz��reniami (ako MySQL). Preferovan� forma je prv�, kde parameter dbhandle je prv�m parametrom funkcie.
Returns an array of the entire result set; FALSE otherwise.
N�zvy st�pcov, ktor� vracaj� SQLITE_ASSOC a SQLITE_BOTH will be case-zbalen� pod�a hodnoty sqlite.assoc_case konfigura�nej vo�by.
Predchádzajúci | Domov | Nasledujúci |
SQLite Functions | Hore | sqlite_busy_timeout |