Home > Articles > Data > Oracle


  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

Executing SQL Scripts

TOAD allows you to execute SQL and SQL scripts as scripts. This will display the output of the script in the Script Output tab in the results panel; see Figure 3.35. This might be convenient when working with scripts so you don't have to exit the TOAD environment to run scripts in SQL*Plus, for example.

Figure 3.35Figure 3.35Executing a SQL statement as a script.

F5 executes the current SQL statement as a script.

The script output gives you the output that the script will produce, not just the data. Figure 3.36 shows a short SQL*Plus script and its output with column headings. SQL*Plus compatibility with TOAD is discussed later in this chapter.

Figure 3.36Figure 3.36Executing a SQL*Plus SQL script as a script.

If there are any syntax errors, TOAD will highlight the syntax problem in the SQL text and display the Oracle error across the bottom of the output area.

  • + Share This
  • 🔖 Save To Your Account