Do I just not understand count()?

Поиск
Список
Период
Сортировка
От Ben
Тема Do I just not understand count()?
Дата
Msg-id Pine.LNX.4.30.0204081122230.9115-100000@gilgamesh.eos.SilentMedia.com
обсуждение исходный текст
Ответы Re: Do I just not understand count()
Список pgsql-general
If I have the table t defined as:

 a
---
 1
 1
 2


and I say:

select count(a=1) from t;

should it give me 1 or 2 as a result? I'm getting 2, and I'd think I
should get 1....


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