Re: select count(*);

Поиск
Список
Период
Сортировка
От Geoff Winkless
Тема Re: select count(*);
Дата
Msg-id CAEzk6fd4K_-QaKXGoS5ZADNsWMSbXg4YRqUma3t0XfHQrXPBqw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: select count(*);  (Marc Mamin <M.Mamin@intershop.de>)
Ответы Re: select count(*);  (Yves Dorfsman <yves@zioup.com>)
Список pgsql-general
On 11 June 2015 at 15:17, Marc Mamin <M.Mamin@intershop.de> wrote:
>But COUNT(*)
>
>does have meaning - it means "the number of rows".

which rows? :-)
 
​The number of rows in the query, as well you know :)

The reason you can't SELECT *; is because there's no way of defining what "*" refers to in this instance. You don't need to define what (*) is in order to tell that there's exactly one row in it.

Geoff

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

Предыдущее
От: Asma Riyaz
Дата:
Сообщение: GCC error and libmpfr.so.4 not found
Следующее
От: Tom Lane
Дата:
Сообщение: Re: select count(*);