Search Postgresql Archives

Re: "SELECT FROM foo" acts like "SELECT COUNT(*) FROM foo"?

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

 



On Wednesday, February 1, 2023, Ron <ronljohnsonjr@xxxxxxxxx> wrote:

test=# select  from sales_detail;
--
(11 rows)

It returned 11 rows as per the psql output text, if it acted like count(*), an aggregate, it would have only returned one row.

You have produced an 11-row, 0-column, output table.  It isn’t “supported” but is allowed for technical convenience, hence the decision to avoid trying to communicate this fact in the syntax diagram.

David J.


[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 Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux