keys for oci_fetch_assoc($rsc) is case-sensitive.
Especially, if the query has an alias name, the alias name is automatically put to capital.
For example, query:
select id, sum(fee) fee
from acct
group by id
will have keys of { 'ID', 'FEE' }
oci_fetch_assoc
(PHP 5, PECL oci8:1.1-1.2.4)
oci_fetch_assoc — Returns the next row from the result data as an associative array
Descrizione
Returns the next row from the result data as an associative array.
Calling oci_fetch_assoc() is identical to calling oci_fetch_array() with OCI_ASSOC.
A subsequent call to oci_fetch_assoc() will return the next row or FALSE if there are no more rows.
Per dettagli sul mappaggio dei tipi dati effettuato dal driver oci8, vedere i tipi di dato supportati dal driver
Elenco dei parametri
- statement
-
A valid OCI statement identifier.
Valori restituiti
Returns an associative array, or FALSE if there are no more rows in the statement .
Nota: Questa funzione imposta i campio NULL al valore PHP NULL.
Nota: Oracle returns all field names in uppercase and associative indices in the result array will be uppercased too.
oci_fetch_assoc
20-Jul-2006 03:53
For earlier PHP versions use ocifetchinto with OCI_ASSOC
