This query works in PostgreSQL:
Select ot.MCode,array_to_string(array_agg(tk1.TName || \',\' || ot.TTime), \' - \') as oujyu_name_list From TR_A
For this query, you can use group_concat, which directly returns a string:
SELECT ..., group_concat(tk1.TName || ',' || ot.TTime, ' - ') FROM ...