It looks like passing 0 (zero) as a $maxrows parameter is treated identically as -1 value - all the rows are returned.
OCIfetchstatement($stmt, $res, 1, 0, OCI_FETCHSTATEMENT_BY_ROW)
Tested under: PHP 4.4.3, WinXP pro
![]() |
|
||||||||||
|
oci_fetch_allОписаниеint oci_fetch_all ( resource statement, array &output [, int skip [, int maxrows [, int flags]]] )
oci_fetch_all() выбирает все строки из результата
запроса в указанный пользователем массив.
oci_fetch_all() возвращает количество выбранных строк
или FALSE в случае ошибки. Параметр
Аргумент
oci_fetch_all() возвращает FALSE в случае ошибки.
oci_fetch_all
dawid.krysiak.net.pl
11-Jul-2007 05:55
It looks like passing 0 (zero) as a $maxrows parameter is treated identically as -1 value - all the rows are returned.
stry_cat at yahoo dot com
07-Feb-2007 07:43
If you want to use more than one flag, you need to use the + to connect them:
jnavratil at houston dot rr dot com
12-Feb-2006 02:46
The number of rows returned is the number actually fetched, not the number potentially available. If one limits the number of rows to fetch, the number of rows returned will be bound by that limit. For example... |