Why query won't save in csv file while it's seems normal in postgresql console
问题 I have this query which i want to save in csv file or html select phone_number, count(driver_callsign), driver_callsign from archived_order where data like '%"ptt":3%' and completed is true and ds_id = 16 and created > (select current_date - interval '7 days') group by archived_order.phone_number, archived_order.driver_callsign HAVING COUNT(driver_callsign) > 1; When i using it in psql console - it seems normal. There is output: phone_number | count | driver_callsign ---------------+-------+-