DB2批量跑sql文件

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/jiangxiaoge1023/article/details/51553833
#!/bin/bash
db2 connect to DB_NAME
db2 set current schema DB_SCHEMA
for file in `ls -a /home/user/ceshi`
  do
        db2 -tvf /home/user/ceshi/$file
  done
阅读更多
换一批

没有更多推荐了,返回首页