Joins array elements into a string using a delimiter.
STRINGDiperbarui: 13 Jun 2026ARRAY_TO_STRING(array_expression, delimiter [, null_text])String array to join
Separator between elements
Replacement text for NULL elements
1 SELECT 2 ARRAY_TO_STRING(['a', 'b', 'c'], ', ') as joined, 3 ARRAY_TO_STRING(['a', NULL, 'c'], ', ', 'N/A') as with_null;
Joins array elements with a delimiter.
| joined | with_null |
|---|---|
| a, b, c | a, N/A, c |
Sudah paham ARRAY_TO_STRING? Latih langsung di browser
Latihan interaktif, langsung di browser.