0% found this document useful (0 votes)
17 views1 page

SQL Scripts

A SQL script is a file containing SQL commands that can be used to create, edit, view, run, and delete scripts. SQL scripts allow storing multiple SQL statements and PL/SQL blocks together. They do not support bind variables and SQL*Plus commands are ignored when running the script. To create a SQL script, users access the SQL Scripts page and either write SQL commands in the Script Editor or upload an existing script file.

Uploaded by

skgoh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views1 page

SQL Scripts

A SQL script is a file containing SQL commands that can be used to create, edit, view, run, and delete scripts. SQL scripts allow storing multiple SQL statements and PL/SQL blocks together. They do not support bind variables and SQL*Plus commands are ignored when running the script. To create a SQL script, users access the SQL Scripts page and either write SQL commands in the Script Editor or upload an existing script file.

Uploaded by

skgoh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

What is SQL Scripts?

A SQL script is a set of SQL commands saved as a file in SQL Scripts. A SQL script can contain
one or more SQL statements or PL/SQL blocks. You can use SQL Scripts to create, edit, view,
run, and delete script files.

When using SQL Scripts, remember the following:

 SQL*Plus commands in a SQL script are ignored at run time.


 There is no interaction between SQL Commands and SQL Scripts.
 You can cut and paste a SQL command from the SQL Script editor to run it in SQL Commands.
 SQL Scripts does not support bind variables.

Creating a SQL Script


You can create a script in the Script Repository by:

 Creating a script in the Script Editor


 Uploading a script from your local file system

Topics in this section include:

 Creating a SQL Script in the Script Editor


 Uploading a SQL Script

Creating a SQL Script in the Script Editor


To create an SQL script in the Script Editor:

1. On the Workspace home page, click SQL Workshop and then SQL Scripts.

The SQL Scripts page appears.

2. Click the Create button.

The Script Editor appears.

3. Enter a name for the script in the Script Name field.

Script name extensions are optional.

4. Enter the SQL statements, PL/SQL blocks and SQL*Plus commands you want to include in your
script.

Remember that SQL Command Line commands are ignored at run time.

5. Click Save to save your script to the repository.

The SQL Scripts page appears listing your newly saved script.

You might also like