Re: it's not NULL, then what is it?

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: it's not NULL, then what is it?
Дата
Msg-id h2e4au$ans$1@ger.gmane.org
обсуждение исходный текст
Ответ на Re: it's not NULL, then what is it?  (Steve Crawford <scrawford@pinpointresearch.com>)
Список pgsql-sql
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;



В списке pgsql-sql по дате отправления:

Предыдущее
От: Steve Crawford
Дата:
Сообщение: Re: it's not NULL, then what is it?
Следующее
От: "Tena Sakai"
Дата:
Сообщение: Re: it's not NULL, then what is it?