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

search for in the

ora_open> <ora_numcols
Last updated: Sat, 24 Mar 2007

view this page in

ora_numrows

(PHP 4, PHP 5 <= 5.0.5)

ora_numrows — Returns the number of rows

Popis

int ora_numrows ( resource $cursor )

Returns the number of rows in a result.

Seznam parametrů

cursor

An Oracle cursor, opened with ora_open().

Návratové hodnoty

Returns the number of rows as an integer, or FALSE on error.

ChangeLog (záznam změn)

VerzePopis
5.1.0

The oracle extension is deprecated in favor of oci8.

Poznámky

When using oci8 as a replacement for the deprecated oracle extension, consider using:

oci_num_rows()



ora_open> <ora_numcols
Last updated: Sat, 24 Mar 2007
 
add a note add a note User Contributed Notes
ora_numrows
christopher dot jones at oracle dot com
06-Feb-2007 02:55
The "oracle" extension has been obsoleted and replaced by the "oci8" extension. Use oci_num_rows() as a replacement for ora_numrows().
help at php dot com
28-Jan-2006 03:40
ora_rows returns the row number of the actual fetched cursor.
So you can control the position of the cursor in the whole fetched data for the cursor.
coscatmu at ihc dot com
27-Dec-2000 10:37
It is important to note that this function acts more as a counter of the number of rows fetched from the cursor.  If you execute this prior to processing the cursor you will always get a 0 for an answer.

The online manual and one of my PHP reference books does not make that distinction.  Some may expect this to count the number of rows in the cursor prior to processing.  This function does not do that.

ora_open> <ora_numcols
Last updated: Sat, 24 Mar 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites