I'm using a batch-file to run sqlplus with an .sql
script:
@ECHO OFF
SET /p usr=username:
SET /p pwd=password:
SET /p dbname=dbname:
set /p tablename=tablename:
sqlplus %usr%/%pwd%@%dbname%.sql
select * from table where (something);
select (something) from table where (something);
exit;
The .bat
file and .sql
script needs to be in a single file, so I can't call an .sql
file.
Any ideas? (I'm using Windows 7 if that helps).