List:General Discussion« Previous MessageNext Message »
From:Scott Gifford Date:September 18 2005 5:31am
Subject:Re: Result row count *without* buffering all results?
View as plain text  
Ken Gieselman <ken@stripped> writes:

[...]

> So, here's my question: How can I find out how many rows are being
> returned by a query, without using mysql_stmt_store_result() to
> buffer all the rows back to the client?

One straightforward way is to replace the SELECT clause with just
SELECT COUNT(*) and execute that query first.

-----ScottG.
Thread
Result row count *without* buffering all results?Ken Gieselman18 Sep
  • Re: Result row count *without* buffering all results?Scott Gifford18 Sep
    • Re: Result row count *without* buffering all results?Ken Gieselman18 Sep
      • Re: Result row count *without* buffering all results?Scott Gifford19 Sep
      • Re: Result row count *without* buffering all results?Harrison Fisk19 Sep
        • Re: Result row count *without* buffering all results?Ken Gieselman19 Sep