note 10272 modified in function.ociparse by sixd
| From: | sixd@php.net | Date: | Mon, 05 Oct 2009 01:47:27 +0000 |
| Subject: | note 10272 modified in function.ociparse by sixd | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-161310@lists.php.net to get a copy of this message | ||
if you're using "complex" statements e.g such having calls to build in oracle
functions in the select list (as in example below), I did not find any other way as using the
"AS <Name>" clause to being able to output the functions outcome using ociresult
example:
<?php
ociparse($conn,"select EMPNO, LPAD(' ', 2*(LEVEL-1)) || ENAME AS
COMPLETE_FANTASY_NAME, JOB, HIREDATE from scott.emp start with job='MANAGER' connect by
PRIOR EMPNO = MGR");
echo ociresult $stmt,"COMPLETE_FANTASY_NAME")." ";
?>
BTW: I also found out by TAE that "COMPLETE_FANATASY_NAME" might not be "complete
fantasy" as it has to be all capital letters.
--was--
if you're using "complex" statements e.g such having calls to build in oracle
functions in the select list (as in example below), I did not find any other way as using the
"AS <Name>" clause to being able to output the functions outcome using ociresult
example:
<?php
ociparse($conn,"select EMPNO, LPAD(' ', 2*(LEVEL-1)) || ENAME AS
COMPLETE_FANTASY_NAME, JOB, HIREDATE from scott.emp start with job='MANAGER' connect by
PRIOR EMPNO = MGR");
echo ociresult $stmt,"COMPLETE_FANTASY_NAME")." ";
?>
BTW: I also found out by TAE that "COMPLETE_FANATASY_NAME" might not be "complete
fantasy" as it has to be all capital letters.
http://php.net/manual/en/function.ociparse.php