Use Database Development tools to create SQL files.
You can use an existing project to store the SQL file or create a
project when you create the SQL file.
In the
Database Development perspective, select
File
> New
> SQL
File.
You can also click Open Scrapbook to Edit SQL Statements to quickly create SQL statements in SQL Scrapbook.
Associate the SQL file with a project.
To
Do this
Use an existing project
Enter or select the project in
the
Enter or Select the Parent Folder.
Create a new project
Click
Create Project, and follow the wizard
instructions.
Enter the File Name.
(Optional) Click
Advanced to link to a file in the file system
and to create, edit, or remove defined path variables.
(Optional) Associate the SQL file with a connection profile.
Select a Connection Profile Type.
Select a
Connection Profile Name, or click Create to create one.
Select
the Database Name.
(Optional) Select
Do Not Connect Now to remain disconnected from the server.
You cannot use the complete Content Assist feature if you select this option.
Click
Finish.
A SQL file is created under the project in
WorkSpace
Navigator and opens in the SQL File Editor.
Right-click in the
SQL File Editor and select
Visual SQLEdit in SQL Query Builder to graphically build SQL statements, or type
your SQL directly in the editor window.
(Optional) To add or remove comment delimiters for a line of code, right-click one or more lines of code, and select Toggle Comment.