SELECT array_to_string(ARRAY(
select eapcode from ywjs_software_v2
where baseid = 'cd054e4846e14b439cd4d18ba2234385' and type = '1'
), ',') AS array_to_string
SELECT array_to_string(ARRAY(
select eapcode from ywjs_software_v2
where baseid = 'cd054e4846e14b439cd4d18ba2234385' and type = '1'
), ',') AS array_to_string