问题
I need to create a batch file, i.e., batch.bat
.
When we execute this file:
- It will open SQLPlus
- It will call a file called
file1.sql
.
file1.sql
contains the creation and insertion scripts for a particular user.
I have file.sql
, but what I need to know is, how do I create a batch file to perform this function?
回答1:
A little test script (stored in file named test.sql
):
select 1 from dual;
exit;
... and to execute it:
sqlplus user/password @test.sql
来源:https://stackoverflow.com/questions/881115/how-can-i-create-a-batch-file-for-sqlplus