#!/bin/sh
TEMP_FILE="temp.$$"
TEMP_FILE1="test.txt"
#set -x
if [ $# -ne 4 ];
then
echo "USAGE: $0 dbserver dbname username passwd"
exit 1
fi
DBSERVER=$1
DBNAME=$2
USERNAME=$3
PASSWD=$4
/opt/sybase/OCS-12_5/bin/isql -U$USERNAME -P$PASSWD -S$DBSERVER -D$DBNAME -o $TEMP_FILE1 <<SQLa
exec pro_tongji
go
SQLa
#rm $TEMP_FILE
#set +x
上面这个文件的SQLa
有何作用?为什么我觉得他是是多余的呢?文件执行存储过程pro_tongji
之后还来个SQLa是啥意思?