$ cat t1.sh mysql -h 172.24.0.220 -uquery -pquery che001 -NB EOF aa.txt select concat(UserGuid,’,’,CreditLine/10000,’本文来源gao.dai.ma.com搞@代*码#网,’,AvailableFunds/10000,’,’,LockedFunds/10000) from KyPayAccounts where CreditLine0; EOF
$ cat t1.sh
mysql -h 172.24.0.220 -uquery -pquery che001 -NB < aa.txt
select concat(UserGuid,’,’,CreditLine/10000,’,’,AvailableFunds/10000,’,’,LockedFunds/10000) from KyPayAccounts where CreditLine>0;
EOF