• ADADADADAD

    MySQL的sql语句取shell程序中的for in多变量一例[ mysql数据库 ]

    mysql数据库 时间:2024-12-03 12:12:06

    作者:文/会员上传

    简介:

    #!/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 <<EOF
    update billing.test set s

    以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。

    #!/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 <<EOF
    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程序中的for in多变量一例.docx

    将本文的Word文档下载到电脑

    推荐度:

    下载
    热门标签: mysqlshell一例