Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: ora_numcols - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net

search for in the

ora_numrows" width="11" height="7"/> <ora_logon
Last updated: Wed, 01 Nov 2006
view this page in

ora_numcols

(PHP 3, PHP 4, PHP 5 <= 5.1.0RC1)

ora_numcols -- カラム数を返す

説明

int ora_numcols ( resource cursor )

ora_numcols() は、結果のカラム数を返します。 parse/exec/fetch シーケンスの後でのみ意味がある値が返されます。

ora_parse(),ora_exec(), ora_fetch(), ora_do() も参照ください。



add a note add a note User Contributed Notes
ora_numcols
tim dot mcguire at dnr dot state dot mn dot us
22-Aug-2001 10:30
I would like to correct the above documentation.  I am able to get results from ora_numcols after a parse & exec sequence and before a fetch:
ora_parse($curs,$query);
ora_exec($curs);

$numfields = ora_numcols($curs);

for($col=0;$col<$numfields;$col++){
  echo ora_columnname($curs,$col);
}
while(ora_fetch($curs)){
etc.........................
}

ora_numrows" width="11" height="7"/> <ora_logon
Last updated: Wed, 01 Nov 2006
 
 
show source | credits | sitemap | contact | advertising | mirror sites