Manuál PHP | ||
---|---|---|
Předcházející | Další |
oci_fetch_array
(PHP 5)
oci_fetch_array -- Returns the next row from the result data as an associative or numeric array, or bothPopis
array oci_fetch_array ( resource statement [, int mode] )Returns an array, which corresponds to the next result row.
Pro detaily o mapování datových typů prováděném ovladačem oci8 viz datové typy podporované ovladačem
It should be mentioned here, that oci_fetch_array() is insignificantly slower, than oci_fetch_row(), but much more handy.
Seznam parametrů
statement
A valid OCI statement identifier.
statement
An optional second parameter can be any combination of the following constants:
DefaultOCI_BOTH - return an array with both associative and numeric indices (the same as OCI_ASSOC + OCI_NUM). This is the default behavior. OCI_ASSOC - return an associative array (as oci_fetch_assoc() works). OCI_NUM - return a numeric array, (as oci_fetch_row() works). OCI_RETURN_NULLS - create empty elements for the NULL fields. OCI_RETURN_LOBS - return the value of a LOB of the descriptor. mode
is OCI_BOTH.
Návratové hodnoty
Returns an array with both associative and numeric indices, or FALSE if
there are no more rows in the statement
.
Poznámka: Tato funkce nastavuje pole s hodnotou NULL na hodnotu PHP NULL.
Poznámka: Oracle returns all field names in uppercase and associative indices in the result array will be uppercased too.
Příklady
Příklad 2. oci_fetch_array() with OCI_NUM example
|
Příklad 3. oci_fetch_array() with OCI_ASSOC example
|
Příklad 4. oci_fetch_array() with OCI_RETURN_LOBS example
|
Předcházející | Domů | Další |
oci_fetch_all | Nahoru | <