To format a SQL statement
Click .
If the SQL Optimizer window is opened, the selected SQL statement will automatically be copied to the SQL Formatter window. Otherwise, enter a SQL statement onto the left pane] of the SQL Formatter window.
Click .
The SQL Formatter will check the syntax of the SQL statement. Only if the syntax is correct will the SQL statement be formatted. The formatted SQL statement. is displayed in the right pane of the SQL Formatter window.
To terminate the format process
Declarations of variables within the SQL statement are allowed, prefixed with a ":" sign or without. If variables are recognized, they will be highlighted in red after executing the Format function.
Note: If table names are in red it indicates that the table and corresponding columns are not recognized. Check these things:
Is there sufficient privileges under the login user to access the table
Are you connected to the correct database and schema
Execute the Synchronize Data Dictionary function to make sure you have the most up-to-date database information in memory.
Below is a list of available functions within the SQL Formatter window.
Button or Menu |
Function |
---|---|
SQL Menu
|
|
Edit Menu
|
|
Edit Menu
|
|
File Menu
|
|
File Menu |
Quest SQL Optimizer for IBM® DB2® LUWmaximizes SQL performance by automating the manual, time-intensive and uncertain process of ensuring that SQL statements are performing as fast as possible. SQL Optimizer analyzes, rewrites, and evaluates SQL statements within multiple database objects, files, or SQL statements captured by the DB2 Event Monitor. With SQL Optimizer, you can analyze and optimize all your problem SQL from multiple sources. SQL Optimizer also provides you a complete index optimization and plan change analysis solution, from index recommendations to simulated index impact analysis, through comparison of multiple SQL access plans.
SQL Optimizer provides you with the following main modules.
SQL Optimizer (including SQL Rewrite and Generate Indexes functions)
© ALL RIGHTS RESERVED. 利用規約 プライバシー Cookie Preference Center