Re: DB: number of rows returned
| From: | Thomas Fromm | Date: | Tue, 14 Nov 2000 18:16:56 +0000 |
| Subject: | Re: DB: number of rows returned | ||
| References: | 1 2 | Groups: | php.pear |
| Request: | Send a blank email to php-pear+get-441@lists.php.net to get a copy of this message | ||
Hi,
> > mysql_num_rows ($res);
>
> It sounds like he is looking for a DB independent function that would do
> that (otherwise why even use PEAR DB).
>
> Under OCI8 (Oracle 8) implementation there is a method called
> affectedRows that returns number of resulting rows.
thats not correct. OCIRowNum returns only the affected rows by an update/insert.
its not returned the number of rows of an select statement.
... thats one of some points why the phplib abstraction isnt DB independent....
regards,
thomas
--
--------------------------------------------------------------------------
http://phporacleadmin.org http://tfromm.com mailto:tf@inubit.com
"build your own wigwam, without windows, without gates and an apache inside"