list_append
Add a value to the end of a list. Also available as array_append and array_push_back.
Try an expression
In Formula, enter the expression and set Output type to VARCHAR.
Expression
list_append([2, 3], 4)Result
'[2, 3, 4]'The expression returns INTEGER[]. Formula stores it as VARCHAR in this example. To use your own data, replace the example values with column names. Keep format strings and other options as written.
Arguments and types
list_append(l, e)- l
- Any value
- e
- Any value
Supported signatures (1)
list_append(l: ANY, e: ANY)The result type can depend on the input types. See DuckDB for the full argument rules.
Things to know
With a missing first argument
list_append(NULL::INTEGER[], 4)'[4]'
Function metadata from DuckDB, used under the MIT license.