Search Postgresql Archives

Re: select count(*);

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11 June 2015 at 15:05, Marc Mamin <M.Mamin@xxxxxxxxxxxx> 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​


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux