Re: Rows in tables... - Mailing list pgsql-php

From Mitch Vincent
Subject Re: Rows in tables...
Date
Msg-id 03b401c09abd$27d60dd0$0200000a@windows
Whole thread Raw
In response to Rows in tables...  (Herb Pabst <herbie@nextearth.com>)
List pgsql-php
SELECT count(*) FROM <tablename>

Then get the count result. You can count a single value in the table if you
want to also..

-Mitch

----- Original Message -----
From: "Herb Pabst" <herbie@nextearth.com>
To: "pgsql-php" <pgsql-php@postgresql.org>
Sent: Monday, February 19, 2001 4:40 PM
Subject: [PHP] Rows in tables...


> What is the easiest way to get the total number of
> rows in a table? I want to do a random pick from a
> table and need to know how many rows are in the
> table.
>
> Do I do a "SELECT * FROM table" and use the info
> from this, or will a select return all the data?
> This is where I'm hazy. Or does fetch_row actually
> return the data?
>
> Any help is appreciated,
> Herbie Pabst
>
>


pgsql-php by date:

Previous
From: Dorin Grunberg
Date:
Subject: Re: Rows in tables...
Next
From: "Dan Wilson"
Date:
Subject: Re: Rows in tables...