当前位置:Gxlcms > mysql > 把mysql数据导出到文本,用“,”分割

把mysql数据导出到文本,用“,”分割

时间:2021-07-01 10:21:17 帮助过:80人阅读

$ cat t1.sh mysql -h 172.24.0.220 -uquery -pquery che001 -NB EOF aa.txt select concat(UserGuid,',',CreditLine/10000,',',AvailableFunds/10000,',',LockedFunds/10000) from KyPayAccounts where CreditLine0; EOF

$ cat t1.sh
mysql -h 172.24.0.220 -uquery -pquery che001 -NB << EOF > aa.txt
select concat(UserGuid,',',CreditLine/10000,',',AvailableFunds/10000,',',LockedFunds/10000) from KyPayAccounts where CreditLine>0;
EOF
\



人气教程排行