把mysql数据导出到文本,用“,”分割
程序员文章站
2022-06-08 07:54:04
...
$ 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.shmysql -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
上一篇: curl和libcurl的区别简介
下一篇: 关于 MySQL 密码你应该知道的那些事