note 8098 modified in function.ocirowcount by sixd
| From: | sixd@php.net | Date: | Thu, 08 Oct 2009 19:33:45 +0000 |
| Subject: | note 8098 modified in function.ocirowcount by sixd | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-161566@lists.php.net to get a copy of this message | ||
It appears the easiest workaround if you want to get numrows without moving to the end of the result
set is to use:
numrows = OCIFetchStatement(...);
OCIExecute(...);
So that the execute re-executes the query. It's horribly inefficient to query twice, but it
works.
--was--
It appears the easiest workaround if you want to get numrows without moving to the end of the result
set is to use:
numrows = OCIFetchStatement(...);
OCIExecute(...);
So that the execute re-executes the query. It's horribly inefficient to query twice, but it
works.
http://php.net/manual/en/function.ocirowcount.php