DB2批量跑sql文件

#!/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

你可能感兴趣的:(DB2批量跑sql文件)