Re: select count(*);

Поиск
Список
Период
Сортировка
От Geoff Winkless
Тема Re: select count(*);
Дата
Msg-id CAEzk6fdowS0_6ntvrwEWu_KVKRL+qGiOdavvrbU18FeL0q_TmQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: select count(*);  (Marc Mamin <M.Mamin@intershop.de>)
Ответы Re: select count(*);  (Marc Mamin <M.Mamin@intershop.de>)
Список pgsql-general
On 11 June 2015 at 15:05, Marc Mamin <M.Mamin@intershop.de> wrote:
That's the point. * has no meaning without FROM

But COUNT(*)
​​
does
have meaning - it means "the number of rows".
​ It's not counting the number of columns in the row, so postgres doesn't need to know what columns exist in the row to return a row count.​

​Geoff​

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

Предыдущее
От: Francisco Olarte
Дата:
Сообщение: Re: Planner cost adjustments
Следующее
От: Marc Mamin
Дата:
Сообщение: Re: select count(*);