oracle - Run SQL*Plus Script That Runs Other Script files -


ok, read this don't think answer matches question. believe op asking how create sqlplus script runs other sqlplus scripts chosen answer reveals how run sql script in sql*plus.

i know how create sqlplus script that, when run, executes other sqlplus scripts within same directory.

the given answer correct. create directory 2 files: control.sql second.sql

make control.sql contain:

set serveroutput on  prompt "start of control" /  @second.sql /  prompt "end of control" / 

make second.sql contain:

prompt "start of second" /  prompt "end of second" / 

then run control.sql


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -