ARRAY_POPBACK
array_popbackβ
array_popback
descriptionβ
Syntaxβ
ARRAY<T> array_popback(ARRAY<T> arr)
Remove the last element from array.
exampleβ
mysql> select array_popback(['test', NULL, 'value']);
+-----------------------------------------------------+
| array_popback(ARRAY('test', NULL, 'value')) |
+-----------------------------------------------------+
| [test, NULL] |
+-----------------------------------------------------+
keywordsβ
ARRAY,POPBACK,ARRAY_POPBACK