generate_series Table Function
Alias: generateSeries
Syntax
Returns a table with the single 'generate_series' column (UInt64) that contains integers from start to stop inclusively:
Returns a table with the single 'generate_series' column (UInt64) that contains integers from start to stop inclusively with spacing between values given by STEP:
STEP can be negative, in which case the series is generated in descending order from START down to STOP. If STEP is negative and START < STOP, the result is empty.
Examples
The following queries return tables with the same content but different column names:
And the following queries return tables with the same content but different column names (but the second option is more efficient):
Generate a descending series: