From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-sql@postgresql.org
Subject: Re: it's not NULL, then what is it?
Date: Wed, 01 Jul 2009 00:41:35 +0200
Message-ID: <h2e4au$ans$1@ger.gmane.org> (raw)
In-Reply-To: <4A4A941C.2060604@pinpointresearch.com>
References: <FE44E0D7EAD2ED4BB2165071DB8E328C04E84C01@egcrc-ex01.egcrc.org>
<4A4A941C.2060604@pinpointresearch.com>
Steve Crawford wrote on 01.07.2009 00:39:
>> canon=# select count(maf) from gallo.sds_seq_reg_shw
>> canon-# where maf ISNULL;
>>
> I believe count will only count not-null
Correct
SELECT count(some_col)
FROM some_table;
is the same as
SELECT count(*)
FROM some_table
WHERE some_col IS NOT NULL;
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: spam_eater@gmx.net
Subject: Re: it's not NULL, then what is it?
In-Reply-To: <h2e4au$ans$1@ger.gmane.org>
* 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