declare -a array[2]
for ((i=0; i<3; i++))
do
read array[$i]
done
for ((n=0; n<3; n++))
do
echo -e "From Table[$n]: ${array[$n]}\n " ;
done
sqlplus owner/[email protected] << ENDOFSQL
@file.sql
exit;
ENDOFSQL;
我需要在file.sql脚本中使用bash数组[]变量。将变量从sh传递到sql
需要输入/输出示例 – 2013-02-28 13:47:27