spool



















      || REPLACE(REPLACE(REPLACE(TRIM(EPARCHY_CODE),chr(9),''),chr(13),''),chr(10),'') || ','
      || (select  REPLACE(REPLACE(REPLACE(TRIM(c.AREA_NAME),chr(9),''),chr(13),''),chr(10),'')
        from td_m_political_location c where c.area_code = t.eparchy_code),chr(13) || chr(10) || ''
  from tf_f_cust_group_p51 t
  where cust_id = 16070501 ;
spool off
exit;
EOF

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326609523&siteId=291194637