RE: [PHP] Number of Rows is a select result set.

From: Date: Tue, 17 Oct 2000 12:53:18 +0000
Subject: RE: [PHP] Number of Rows is a select result set.
Groups: php.general 
Request: Send a blank email to php-general+get-20606@lists.php.net to get a copy of this message
Dear Brian, I believe that Oracle can not return a num_rows() answer because it starts sending rows before it's done with the query. Sometimes that's good, but not if you want to know how many records there are. The PHPLIB documentation says this: "You should duplicate your WHERE clause of the query in such environments and ask for the COUNT(*). This will be less inefficient as it seems as the query path and query result have been cached by the database. " HTH, Matt ---------------------------------------------------------------- Matthew Leingang http://www.math.rutgers.edu/ Rutgers University leingang@math.rutgers.edu Department of Mathematics "This signature needs no quote." On Mon, 16 Oct 2000, Brian Hand wrote: > I did there does not appear to be an equivelent. Only a number of columns. > Did I miss it? > > Brian > > -----Original Message----- > From: Joe Stump [mailto:joe@earth.care2.com] > Sent: Monday, October 16, 2000 4:17 PM > To: Brian Hand > Cc: php-general@lists.php.net > Subject: Re: [PHP] Number of Rows is a select result set. > > > Check for the oracle equivilent of mysql_num_rows(); > > --Joe > > On Mon, Oct 16, 2000 at 04:19:05PM -0500, Brian Hand wrote: > > Hi, > > > > Can someone point me in the right direction on how to get the number of > > rows, not columns in a result set using the OCI8 functionality. > > > > Thanks. > > > > Brian > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > /*****************************\ > * Joe Stump * > * www.Care2.com * > * Office: 650.328.0198 * > * Extension: 122 * > \*****************************/ > http://www.miester.org/Joe/Stump/Joe_Stump_resume.html > > -----BEGIN GEEK CODE BLOCK----- > Version: 3.12 > GB/E/IT d- s++:++ a? C++++ UL++$ P+ L+++$ E----! W+++$ > N+@ o? K? w---! O-@ M+@ V-! P(++) PE(+) Y+@ PGP+++@ t+@ > 5? R-! tv@ b+ DI++@ D(++++) G++@ e+@ h@ r+! z(+++++**)! > ------END GEEK CODE BLOCK------ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > [ Part 59: "Included Message" ] >

« previous php.general (#20606) next »