array_popback
array_popbackβ
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> select array_popback(['test', NULL, 'value']);
+-----------------------------------------------------+
| array_popback(ARRAY('test', NULL, 'value')) |
+-----------------------------------------------------+
| [test, NULL] |
+-----------------------------------------------------+
keywordsβ
ARRAY,POPBACK,ARRAY_POPBACK