Rows in tables...

From: Herb Pabst <herbie(at)nextearth(dot)com>
To: pgsql-php <pgsql-php(at)postgresql(dot)org>
Subject: Rows in tables...
Date: 2001-02-19 21:40:09
Message-ID: 3A9192B7.EF0D1A2B@nextearth.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

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

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Mitch Vincent 2001-02-19 21:44:36 Re: Rows in tables...
Previous Message Riju Francis 2001-02-19 07:26:18 HELP