12.07.2015 Views

Oracle SQL Developer

Oracle SQL Developer

Oracle SQL Developer

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Using the <strong>SQL</strong> Worksheetreph[eader]sav[e]sho[w]shu[tdown]spo[ol]startupstoretimi[ng]tti[tle]var[iable]Related TopicsUsing the <strong>SQL</strong> Worksheet1.6.2 Script RunnerThe script runner emulates a limited set of <strong>SQL</strong>*Plus features. If you do not have<strong>SQL</strong>*Plus on your system, you can often enter <strong>SQL</strong> and <strong>SQL</strong>*Plus statements andexecute them by clicking the Run Script icon. The Script Output pane displays theoutput.The <strong>SQL</strong>*Plus features available in the script runner include @, @@, CONNECT, EXIT,QUIT, UNDEFINE, WHENEVER, and substitution variables. For example, to run ascript named c:\myscripts\mytest.sql, type @c:\myscripts\mytest in the Enter <strong>SQL</strong>Statement box, and click the drop-down next to the Execute Statement icon and selectRun Script.The following considerations apply to using the <strong>SQL</strong> <strong>Developer</strong> script runner:■ You cannot use bind variables. (The Execute <strong>SQL</strong> Statement feature does let youuse bind variables of type VARCHAR2, NUMBER, and DATE.)■■■■For substitution variables, the syntax &&variable assigns a permanent variablevalue, and the syntax &variable assigns a temporary (not stored) variable value.For EXIT and QUIT, commit is the default behavior, but you can specify rollback.In either case, the context is reset: for example, WHENEVER commandinformation and substitution variable values are cleared.DESCRIBE works for most, but not all, object types for which it is supported in<strong>SQL</strong>*Plus.For <strong>SQL</strong>*Plus commands that are not supported, a warning message is displayed.■ <strong>SQL</strong>*Plus comments are ignored.If you have <strong>SQL</strong>*Plus available on your system, you may want to use it instead of thescript runner. To start <strong>SQL</strong>*Plus from <strong>SQL</strong> <strong>Developer</strong>, click Tools and then <strong>SQL</strong>*Plus.For information about <strong>SQL</strong>*Plus, see Using <strong>SQL</strong>*Plus.Related TopicsUsing the <strong>SQL</strong> Worksheet1.6.3 Execution PlanThe Execute Explain Plan icon generates the execution plan, which you can see byclicking the Explain tab. The execution plan is the sequence of operations that will beperformed to execute the statement. An execution plan shows a row source tree withthe hierarchy of operations that make up the statement. For each operation, it showsthe ordering of the tables referenced by the statement, access method for each table<strong>SQL</strong> <strong>Developer</strong> Concepts and Usage 1-19

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!