note 10272 added to OCIParse

From: Date: Fri, 22 Dec 2000 12:21:10 +0000
Subject: note 10272 added to OCIParse
Groups: php.notes 
Request: Send a blank email to php-notes+get-9023@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: 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://www.php.net/manual/function.ociparse.php

« previous php.notes (#9023) next »