start and end, with an increment of step.
This function is supported from v3.1.
Syntax
Parameters
start: optional, the start value. It must be a constant or a column that evaluates to TINYINT, SMALLINT, INT, BIGINT, or LARGEINT. The default value is 1.end: required, the end value. It must be a constant or a column that evaluates to TINYINT, SMALLINT, INT, BIGINT, or LARGEINT.step: optional, the increment. It must be a constant or a column that evaluates to TINYINT, SMALLINT, INT, BIGINT, or LARGEINT. Whenstartis less thanend, the default value is 1. Whenstartis greater thanend, the default value is -1.
Return value
Returns an array whose elements have the same data type as the input parameters.Usage notes
- If any input parameter is a column, you must specify the table to which the column belongs.
- If any input parameter is a column, you must specify other parameters. Default values are not supported.
- If any input parameter is NULL, NULL is returned.
- If
stepis 0, an empty array is returned. - If
startequals toend, the value is returned.
Examples
The input parameters are constants
Text
One of the input parameter is a column
Text