Creating an SQL statement 

Procedure

  1. Under User Settings ® Query Dialog, define the isolation level for your SQL statement.
  2. Choose View ® Direct SQL for Auto Commit: ON or View ® Direct SQL Auto Commit Off for Auto Commit: OFF.
  3. Enter the SQL statement in the SQL statement window.

You can read the current setting at any time in the status bar for the window.

To comment out SQL statements, use // or -- at the beginning of the line.

You can find help for creating SQL statements as follows:

Suppose List

When you are creating a new SQL statement, you can use a list of existing statements to help you. Choose CTRL+SPACE to view the list of SQL statements. A list of SQL keywords is then displayed.

You can also expand the list yourself. Select your SQL statement and choose Add to Suppose List. You can delete SQL statements from the list using the function Remove from Suppose List.

SQL Studio Objects

If you have already created and saved SQL statements with the direct SQL dialog, or if you have been provided with SQL statements from other SQL Studio users, you can view them in the SQL Studio Objects directory in the Catalog Manager.

Recent Statements

The statements that you have used during a database session are saved automatically and can be called up again. Choose Direct SQL ® Recent Statements to do this. These statements are deleted automatically when you log off from the database.

Previous/Next Statement

You can scroll through the statement history of a database session by choosing Direct SQL ® Previous Statement or Next Statement.