I would like to get the array [1,2,3] in mysql. For example:
[1,2,3]
with tbl (id) as ( select 1 union select 2 union select 3 ) select \'something\'