FOR tbl_det IN (SELECT ts.column_1, ts.column_2 FROM table_name ts WHERE ts.column_3 = p_param_1) LOOP v_csv_col1 := v_csv_col1 || ',' || tbl_det.column_1; END LOOP;
FOR tbl_det IN (SELECT ts.column_1, ts.column_2 FROM table_name ts WHERE ts.column_3 = p_param_1) LOOP v_csv_col1 := v_csv_col1 || ',' || tbl_det.column_1; END LOOP;