MERGE
SinceVersion 2.0.0
description
Syntax
AGGREGATE_FUNCTION_MERGE(agg_state) The aggregated intermediate results are aggregated and calculated to obtain the actual result. The type of the result is consistent with AGGREGATE_FUNCTION.
example
1. mysql [test]>select avg_merge(avg_state(1)) from d_table;
2. +-------------------------+
3. | avg_merge(avg_state(1)) |
4. +-------------------------+
5. | 1 |
6. +-------------------------+
keywords
AGG_STATE, MERGE
