pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Giannis <ogiannhs@yahoo.gr>
To: pgsql-sql@postgresql.org
Subject: Re: SQL -select count-
Date: Tue, 26 Nov 2002 15:36:58 +0000
Message-ID: <200211261536.58303.dev@archonet.com> (raw)
In-Reply-To: <00cf01c28fee$144d8bd0$dd4186c3@edunet.uoa.gr>
References: <00cf01c28fee$144d8bd0$dd4186c3@edunet.uoa.gr>

On Tuesday 19 Nov 2002 5:06 pm, Giannis wrote:
> when I do :
>
> select count(column_name) from table_name
>
> should I get the count for all columns or just those which are not null?

Just "not null" - use count(*) or count(0) for a count of rows.

-- 
  Richard Huxton



view thread (3+ messages)  latest in thread

Message-ID: <200211261536.58303.dev@archonet.com>
Permalink:  ../200211261536.58303.dev@archonet.com/
Also on:    postgresql.org/message-id/200211261536.58303.dev@archonet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dev@archonet.com, ogiannhs@yahoo.gr
  Subject: Re: SQL -select count-
  In-Reply-To: <200211261536.58303.dev@archonet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox