How to pass a variable from a Windows Batch File to SQL*Plus
I want to pass a variable from a Windows Batch File to SQLPLUS, while displaying sql result batch variable should print along with the sql result. Result should be stored in csv file. How can I do that. This is possible in Unix(shell script) how can I do that in Windows(batch script). I want to pass a variable from a Windows Batch File to SQLPLUS Just pass it as an argument to the SQL script. And use substitution variables in the same order that of the arguments list &1 &2... For example, mybatchfile.BAT: sqlplus -S username/password@sid @c:\sql\mysqlfile.sql 1000 7369 mysqlfile.SQL: update