Re: Rows in tables...
| От | Mitch Vincent |
|---|---|
| Тема | Re: Rows in tables... |
| Дата | |
| Msg-id | 03b401c09abd$27d60dd0$0200000a@windows обсуждение исходный текст |
| Ответ на | Rows in tables... (Herb Pabst <herbie@nextearth.com>) |
| Список | 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 по дате отправления: