Why do I get the following error LISTAGG function: “result of string concatenation is too long"?* [duplicate]
问题 This question already has answers here : LISTAGG function: “result of string concatenation is too long” (12 answers) Closed last year . I am using this query HR--Any baby with a HR<80 AS (SELECT fm.y_inpatient_dat, h.pat_id, h.pat_enc_csn_id, LISTAGG(meas_value, '; ') WITHIN GROUP (ORDER BY fm.recorded_time) abnormal_HR_values from ip_flwsht_meas fm join pat_enc_hsp h on fm.y_inpatient_dat = h.inpatient_data_id where fm.flo_meas_id in ('8' ) and (to_number(MEAS_VALUE) <'80') AND fm.recorded