云数据库 GAUSSDB-数组函数:array_length(anyarray, int)
时间:2025-06-03 09:35:45
array_length(anyarray, int)
描述:返回指定数组维度的长度。int为指定数组维度。
返回类型:int
示例:
1 2 3 4 5 6 7 8 9 10 11 |
gaussdb=# SELECT array_length(array[1,2,3], 1) AS RESULT; result -------- 3 (1 row) gaussdb=# SELECT array_length(array[[1,2,3],[4,5,6]], 2) AS RESULT; result -------- 3 (1 row) |
support.huaweicloud.com/centralized-devg-v8-gaussdb/gaussdb-42-2041.html