读取包含插入查询的文本文件并在shell脚本中运行

时间:2020-06-03 10:34:36

标签: bash shell unix sqlplus

我有一个名为abc.txt的文本文件,其中包含几个插入查询,我想读取此文件并使用Shell脚本运行这些查询。

我目前的做法是:

1.reading the file line by line
2.connecting to sqlplus using username and password
3.running the command

我的要求是,我想进行一次连接,我不想进行多次连接。

如何通过一个连接运行插入查询?

0 个答案:

没有答案