Open fjtello opened 1 year ago
SELECT REPLACE(CONCAT('"',STRING_AGG(element, '","'),'"'), '"', '''') As stringofallelements FROM table
element1 element2
==> res: 'element1', 'element2'
SELECT REPLACE(CONCAT('"',STRING_AGG(element, '","'),'"'), '"', '''') As stringofallelements FROM table
table
element1 element2
==> res: 'element1', 'element2'