Menggabungkan dua atau lebih list menjadi satu. Operator || juga bisa digunakan.
LISTDiperbarui: 12 Jul 2026LIST_CONCAT(list1, list2) | list1 || list2List pertama
List kedua
1 SELECT LIST_CONCAT([1, 2, 3], [4, 5, 6]) AS combined;
Menggabungkan dua list angka.
1 SELECT [1, 2, 3] || [4, 5, 6] AS combined;
Operator || lebih ringkas.
1 SELECT ['a'] || ['b', 'c'] || ['d', 'e', 'f'] AS letters;
Menggabungkan lebih dari 2 list.
1 SELECT 2 p.product_name, 3 p.tags || c.category_tags AS all_tags 4 FROM products p 5 JOIN categories c ON p.category_id = c.id;
Menggabungkan tags produk dengan category tags.
Sudah paham LIST_CONCAT? Latih langsung di browser
Latihan interaktif, langsung di browser.