Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Applies to:
Databricks SQL
Databricks Runtime 13.3 LTS and above
Returns array prepended by elem.
Syntax
array_prepend(array, elem)
Arguments
array: An ARRAY.elem: An expression of the same type as the elements ofarray.
Returns
An ARRAY of the same type as array.
Examples
> SELECT array_prepend(array(1, 2, 3), 0);
[0,1,2,3]
> SELECT array_prepend(array(1, 2, 3), NULL);
[NULL,1,2,3]