note 38825 added to function.ocifetchinto
| From: | cjbj at hotmail dot com | Date: | Wed, 07 Jan 2004 23:29:50 +0000 |
| Subject: | note 38825 added to function.ocifetchinto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-63116@lists.php.net to get a copy of this message | ||
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
)
*/
?>
----
Manual Page -- http://www.php.net/manual/en/function.ocifetchinto.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38825
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38825&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38825&report=yes
Search -- http://master.php.net/manage/user-notes.php