MySQL ResultSet - count rows?
- From: Christoph <christoph.burschka@xxxxxxxxx>
- Date: Mon, 10 Dec 2007 00:34:59 -0800 (PST)
Hello,
I am writing the data of a ResultSet object to an array. To declare
the array length, I need to know the number of rows before copying
them - is there a way to read the row count instantly, without having
to iterate anything?
PHP has mysql_count_rows, but I'm not sure what that does internally -
it may just iterate over the data too.
--
Chris
.
- Follow-Ups:
- Re: MySQL ResultSet - count rows?
- From: tzvika.barenholz@xxxxxxxxx
- Re: MySQL ResultSet - count rows?
- From: Arne Vajhøj
- Re: MySQL ResultSet - count rows?
- From: Guido Weber
- Re: MySQL ResultSet - count rows?
- From: Sabine Dinis Blochberger
- Re: MySQL ResultSet - count rows?
- From: Dyreatnews
- Re: MySQL ResultSet - count rows?
- Prev by Date: Re: Hi
- Next by Date: Re: MySQL ResultSet - count rows?
- Previous by thread: Hi
- Next by thread: Re: MySQL ResultSet - count rows?
- Index(es):
Relevant Pages
|
|