Returns the number of elements in a JSON array.
INT64Diperbarui: 13 Jun 2026JSON_ARRAY_LENGTH(json_expression)JSON array
1 SELECT 2 JSON_ARRAY_LENGTH(JSON '[1, 2, 3]') as len, 3 JSON_ARRAY_LENGTH(JSON '[]') as empty_len;
Counts the number of elements in an array.
| len | empty_len |
|---|---|
| 3 | 0 |
Sudah paham JSON_ARRAY_LENGTH? Latih langsung di browser
Latihan interaktif, langsung di browser.