array_popback

array_popback

description

Syntax

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

Remove the last element from array.

example

  1. mysql> select array_popback(['test', NULL, 'value']);
  2. +-----------------------------------------------------+
  3. | array_popback(ARRAY('test', NULL, 'value')) |
  4. +-----------------------------------------------------+
  5. | [test, NULL] |
  6. +-----------------------------------------------------+

keywords

ARRAY,POPBACK,ARRAY_POPBACK