note 38825 deleted from function.ocifetchinto by sixd
| From: | sixd@php.net | Date: | Wed, 18 Nov 2009 22:51:53 +0000 |
| Subject: | note 38825 deleted from function.ocifetchinto by sixd | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-163059@lists.php.net to get a copy of this message | ||
Note Submitter: cjbj at hotmail dot com
----
In Oracle's terms a column alias is a temporary name assigned to a
column. In "SELECT EMP.ENAME EX1 FROM EMP" the column name is "ENAME"
and the column alias is "EX1".
Associative arrays can be used with duplicate columns if the columns
have aliases. In the example below the aliases id1 and id2 have been
added.
<?php
$sql = "select a.id id1, b.id id2 from ref a, library b where a.id = b.id";
// ...parsed and executed...
ocifetchinto($stmt, $row, OCI_ASSOC);
Array
(
[ID2] => 948
[ID1] => 948
)
*/
?>