Skip to main content
Skip to main content

array_popback

array_popback

SinceVersion 1.2.0

array_popback

description

Syntax

ARRAY<T> array_popback(ARRAY<T> arr)

Remove the last element from array.

notice

Only supported in vectorized engine

example

mysql> set enable_vectorized_engine=true;

mysql> select array_popback(['test', NULL, 'value']);
+-----------------------------------------------------+
| array_popback(ARRAY('test', NULL, 'value')) |
+-----------------------------------------------------+
| [test, NULL] |
+-----------------------------------------------------+

keywords

ARRAY,POPBACK,ARRAY_POPBACK