{"Entry":{"collection":"func","key":"array-length","name":"array_length","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"8.3","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"8.4"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"d22fedb7f32bed5664fd6ee84072c0fe3390c03c4b096fd5f028eb05ab6d21af","first_version":"8.4","group":"array","group_label":"Array Functions And Operators","groups":["array"],"imported_at":"2026-09-27T17:57:28.876134+08:00","last_version":"20","name":"array_length","name_key":"array_length","position":19004,"present_in":["8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"signature":"array_length ( anyarray, integer ) → integer","signature_count":1,"slug":"array-length","source_rev":"b7bd9cda","summary":"Returns the length of the requested array dimension.","summary_zh":""}},"Definition":{"Collection":"func","Key":"array-length","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"array-length","SourceRevision":"b7bd9cda","Facts":{"description":"Returns the length of the requested array dimension. (Produces NULL instead of 0 for empty or missing array dimensions.)","description_html":"Returns the length of the requested array dimension. (Produces NULL instead of 0 for empty or missing array dimensions.)","description_zh":"","description_zh_html":"","doc":{"anchor":"ARRAY-FUNCTIONS-TABLE","file":"functions-array.html","slug":"18"},"group":"array","group_label":"Array Functions And Operators","lang":"en","layout":"table-new","pages":["functions-array.html"],"prose_only":false,"signatures":[{"description":"Returns the length of the requested array dimension. (Produces NULL instead of 0 for empty or missing array dimensions.)","description_html":"Returns the length of the requested array dimension. (Produces NULL instead of 0 for empty or missing array dimensions.)","description_zh":"","description_zh_html":"","examples":[{"expr":"array_length(array[1,2,3], 1)","result":"3"},{"expr":"array_length(array[]::int[], 1)","result":"NULL"},{"expr":"array_length(array['text'], 2)","result":"NULL"}],"html":"\u003ccode class=\"function\"\u003earray_length\u003c/code\u003e ( \u003ccode class=\"type\"\u003eanyarray\u003c/code\u003e, \u003ccode class=\"type\"\u003einteger\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"array_length ( anyarray, integer ) → integer","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"ARRAY-FUNCTIONS-TABLE","file":"functions-array.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"array-length","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"array_length","Summary":"返回请求的数组维度的长度。（对于空或缺失的数组维度，返回NULL而不是0。）","BodyHTML":"返回请求的数组维度的长度。（对于空或缺失的数组维度，返回NULL而不是0。）\u003cpre\u003earray_length ( anyarray, integer ) → integer\u003c/pre\u003e返回请求的数组维度的长度。（对于空或缺失的数组维度，返回NULL而不是0。）","SourceRevision":"ca936764","ContentHash":"22fdb38bcbe70d2cd02ddec55b4318a5a7b19ae74923d238fb4de7b4ac68cba6","Payload":{"description_zh":"返回请求的数组维度的长度。（对于空或缺失的数组维度，返回NULL而不是0。）","description_zh_html":"返回请求的数组维度的长度。（对于空或缺失的数组维度，返回NULL而不是0。）","signatures":[{"description_zh":"返回请求的数组维度的长度。（对于空或缺失的数组维度，返回NULL而不是0。）","description_zh_html":"返回请求的数组维度的长度。（对于空或缺失的数组维度，返回NULL而不是0。）","returns":"integer","text":"array_length ( anyarray, integer ) → integer","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"3a178fa38366a452ef4d1352f8634ea41272eea10cf048aafc4f7a683df061a2","Text":"array_length ( anyarray, integer ) → integer","Returns":"integer","Payload":{"description":"Returns the length of the requested array dimension. (Produces NULL instead of 0 for empty or missing array dimensions.)","description_html":"Returns the length of the requested array dimension. (Produces NULL instead of 0 for empty or missing array dimensions.)","description_zh":"","description_zh_html":"","examples":[{"expr":"array_length(array[1,2,3], 1)","result":"3"},{"expr":"array_length(array[]::int[], 1)","result":"NULL"},{"expr":"array_length(array['text'], 2)","result":"NULL"}],"html":"\u003ccode class=\"function\"\u003earray_length\u003c/code\u003e ( \u003ccode class=\"type\"\u003eanyarray\u003c/code\u003e, \u003ccode class=\"type\"\u003einteger\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"array_length ( anyarray, integer ) → integer","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
