Skip to main content

ARRAY_REMOVE_LAST

Removes the last element from the array.

Syntax

ARRAY_REMOVE_LAST( <array> )

Examples

SELECT ARRAY_REMOVE_LAST([1, 2, 3]);

┌──────────────────────────────┐
│ array_remove_last([1, 2, 3])
├──────────────────────────────┤
[1,2]
└──────────────────────────────┘
Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today