028-86922220

建站动态

根据您的个性需求进行定制 先人一步 抢占小程序红利时代

MySQL的sql语句取shell程序中的forin多变量一例

#!/bin/bash
a=(`cat time.txt`)
b=(`cat sum.txt`)
for (( i = 0; i < 38; i++))
do
/bin/MySQL -u test -p'test' -h localhost -P 3306 <update billing.test set scan_first_sum='${b[$i]}' where project='zjpj' and date='${a[$i]}';
select * from chenfeng.test where project='zjpj' and date='${a[$i]}' and scan_first_sum='${b[$i]}';
EOF
done
#echo ${a[$i]} ${b[$i]}


当前文章:MySQL的sql语句取shell程序中的forin多变量一例
当前URL:http://www.tsicrk.com/article/giphce.html

其他资讯

让你的专属顾问为你服务

1.3718s