Don't have Telegram yet? Try it now!
http://blackhold.nusepas.com/2016/04/10/exportar-consulta-sql-a-un-fichero-csv/
Exportar consulta SQL a un fichero csv