fatcodeguy
Programmer
I was wondering how to call a sql file in SQL*Plus with parameters. I have a batch file that runs sql plus and the file
sqlplus user/pass@db @f:\scripts\my_script.sql
Script my_script has several parameters (¶m). When I run the script as above, I am prompt for my parameters, but I want to be able to hard code the parameters in the batch file. Some thing like
sqlplus user/pass@db @f:\scripts\my_script.sql ¶m1=blah ¶m2=blahblah
Is this possible? Does this make sense?
Thanks
sqlplus user/pass@db @f:\scripts\my_script.sql
Script my_script has several parameters (¶m). When I run the script as above, I am prompt for my parameters, but I want to be able to hard code the parameters in the batch file. Some thing like
sqlplus user/pass@db @f:\scripts\my_script.sql ¶m1=blah ¶m2=blahblah
Is this possible? Does this make sense?
Thanks