mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 17:44:23 +00:00
504 B
504 B
slug | sidebar_label |
---|---|
/en/sql-reference/statements/select/all | ALL |
ALL Clause
If there are multiple matching rows in the table, then ALL
returns all of them. SELECT ALL
is identical to SELECT
without DISTINCT
. If both ALL
and DISTINCT
specified, exception will be thrown.
ALL
can also be specified inside aggregate function with the same effect(noop), for instance:
SELECT sum(ALL number) FROM numbers(10);
equals to
SELECT sum(number) FROM numbers(10);