Re: Number of Records in a Table

From: David Olbersen <dave(at)slickness(dot)org>
To: Charles Welch <caddbase(at)rapfire(dot)net>
Cc: <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Number of Records in a Table
Date: 2001-03-13 02:13:04
Message-ID: Pine.LNX.4.31.0103121812030.27230-100000@bubbles.electricutopia.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Fri, 9 Mar 2001, Charles Welch wrote:

->How can you determine how many records exist in a table with out doing a
->SELECT statement and then counting the records that are read?

I assume you mean counting by hand...

SELECT COUNT( -primarykey- ) FROM table;

obviously put your pirmary key and table name where they belong.

-- Dave

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Rob Arnold 2001-03-13 02:18:42 Re: array column problem
Previous Message mikhail malamud 2001-03-13 02:13:03 RE: add primary key