Oracle SQL Developer
Oracle SQL Developer
Oracle SQL Developer
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Using the <strong>SQL</strong> Worksheet■■■■■■■■Run Script executes all statements in the Enter <strong>SQL</strong> Statement box using the ScriptRunner. The <strong>SQL</strong> statements can include substitution variables (but not bindvariables) of type VARCHAR2 (although in most cases, VARCHAR2 isautomatically converted internally to NUMBER if necessary); a pop-up box isdisplayed for entering substitution variable values.Cancel: Stops the execution of any statements currently being executed.<strong>SQL</strong> History: Displays a dialog box with information about <strong>SQL</strong> statements thatyou have executed. You can save statements to a file, or append to or overwritestatements on the worksheet (see <strong>SQL</strong> History List).Execute Explain Plan: Generates the execution plan for the statement (internallyexecuting the EXPLAIN PLAN statement). To see the execution plan, click theExplain tab. For more information, see Execution Plan.Clear: Erases the statement or statements in the Enter <strong>SQL</strong> Statement box.Open File: Opens a <strong>SQL</strong> script file that you specify and displays it in the Enter<strong>SQL</strong> Statement box.Save File: Saves the contents of the Enter <strong>SQL</strong> Statement box to a <strong>SQL</strong> script filethat you specify.Print File: Prints the contents of the Enter <strong>SQL</strong> Statement box.■ To the right of these icons is a drop-down list for changing the databaseconnection to use with the worksheet.Enter <strong>SQL</strong> Statement: The statement or statements that you intend to execute. (For asingle statement, the semicolon at the end is optional in the <strong>SQL</strong> Worksheet.) <strong>SQL</strong>keywords are automatically highlighted. To format the statement (capitalizing thenames of statements, clauses, keywords, and so on), right-click in the statement areaand select Format <strong>SQL</strong>.You can drag some kinds of objects from the Connections navigator and drop theminto the Enter <strong>SQL</strong> Statement box:■If you drag and drop a table or view, a SELECT statement is constructed with allcolumns in the table or view. You can then edit the statement, for example,modifying the column list or adding a WHERE clause.■ If you drag and drop a function or procedure, a snippet-like text block isconstructed for you to edit when including that object in a statement.Tabs display panes with the following information:■■■■■Results: Displays the results of the most recent Execute Statement operation.Explain: Displays the output if you clicked the Explain Execution Plan icon (seeExecution Plan).Script Output: Displays the output if you clicked the Run Script icon (see ScriptRunner).DBMS Output: Displays the output of DBMS_OUTPUT package statements (seeDBMS Output Pane).OWA Output: Displays <strong>Oracle</strong> Web Agent (MOD_PL<strong>SQL</strong>) output (see OWAOutput Pane).Related Topics<strong>SQL</strong>*Plus Statements Supported and Not Supported in <strong>SQL</strong> Worksheet<strong>SQL</strong> <strong>Developer</strong> Concepts and Usage 1-17