Edit by browser

This commit is contained in:
杨茂林 2022-03-11 02:10:29 +08:00
parent 6223dec204
commit ba09836e0b
1 changed files with 5 additions and 10 deletions

View File

@ -1,15 +1,10 @@
#检查模板
#---------- 数据准备 ----------
export MYSQL_PWD=123123
mysql -h127.0.0.1 -uroot < src/common/finance1.sql 2>/dev/null
mysql -h127.0.0.1 -uroot < src/common/finance2.sql 2>/dev/null
#! /bin/bash
# 选择数据库实例
read -p '' choice
#---------- 运行学生代码 ----------
mysql -h127.0.0.1 -uroot << EDF
use $choice;
source src/test19/test19.sql
# 数据初始化
gsql -d postgres -U gaussdb -W'Passwd123@123' -h localhost -p5432 < /data/workspace/myshixun/src/common/$choice.sql >log.txt 2>&1
EDF
#---------- 运行学生代码 ----------
gsql -d postgres -U gaussdb -W'Passwd123@123' -h localhost -p5432 -f /data/workspace/myshixun/src/test19/test19.sql