Aug 25, 2018

[HDGEM] How to download from MySQL as CSV file with flexible query

        for i in `seq 1 15`;          do                  echo $i                  mysql --login-path=live -e "SELECT mf.* FROM transit.me_final mf where mf.id=$i" transit  |  tr \\t ',' > $i.csv          done


--
Posted By Blogger to HDGEM at 11/03/2016 12:35:00 PM