Firstly, this question relates to Oracle SQL Developer 3.2 , not SQL * Plus or iSQL, etc. I did a bunch of searches, but did not find a direct answer.
I have several collections of scripts that I am trying to automate (and by the way, my SQL experience is pretty simple and mostly MS based). I am having a problem with a relative path. for example, suppose this setting:
scripts/A/runAll.sql
| /A1.sql
| /A2.sql
|
/B/runAll.sql
/B1.sql
/B2.sql
I would like to have a file scripts/runEverything.sqlsomething like this:
@@/A/runAll.sql
@@/B/runAll.sql
Scripts / A / runAll.sql:
@@/A1.sql
@@/A2.sql
where "@@", I'm going to, means relative path in SQL * Plus.
, . - '&1' . ..:
/runEverything.sql:
@'&1/A/runAll.sql' '&1/A'
@'&1/B/runAll.sql' '&1/B'
, :
@'c:/.../scripts/runEverything.sql' 'c:/.../scripts'
, B/runAll.sql : c:/.../scripts/A/B.
, SQL Developer ?