note 10272 modified in function.ociparse by danbrown

From: Date: Wed, 25 Feb 2009 14:10:48 +0000
Subject: note 10272 modified in function.ociparse by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-151112@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: 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

« previous php.notes (#151112) next »