サポートと今すぐチャット
サポートとのチャット

SQL Optimizer for DB2 LUW 4.4.1 - User Guide

SQL Optimizer for IBM® DB2® LUW
UsageStatistics Getting Started Options SQL Scanner SQL Optimizer SQL Formatter SQL Inspector Database Explorer SQL Repository Index Impact Analyzer Index Usage Analyzer User-Defined Temp Table Editor Functions SQL Functions SQL Information and Functions Activity Log
Tutorials About us Copyright

Syntax Highlight

Syntax highlighting changes the colors and attributes of the text in the SQL statement displayed panes, making it easier to quickly identify parts of the code. The text colors and attributes for syntax highlights can be defined within the Options window.

To define the syntax highlighting

  1. Click image\B_Options.gif.

  2. Select the Editor tab.

  3. Under the Editing section, click image\B_Ellipse.gif next to the Syntax highlight checkbox.

  4. Modify the colors and attributes for any of the elements listed below. Click OK.

  5. Check the Syntax highlight checkbox in order for your selections to apply the syntax highlighting to the code.

Element options

Elements

The font format and color for the following elements can be defined for the following elements in the syntax of a SQL statement:

Syntax Element

Description

Reserved Word

DB2 SQL reserved words.

For example: ACCESS, ADD, ALL, ALTER, AND, ANY, AS, ASC , BETWEEN, BY

Function

DB2 build-in functions.

For example: ABS, ACOS , ASCII, ASIN , ATAN , ATAN2, CEIL , SIGN

Comment

Comment delimiters ( --, /* */ )

Quoted Identifier

String enclosed in double quotes ( " " )

String

String enclosed in single quotes ( ' ' )

Number

Numbers 0 to 9 and floating point.

Symbol

Symbols.

For example: !, $, %, ^, &, *, (, ), -, =, +, {, }, [, ], :, ;, @

Data type

DB2 data type.

For example: CHAR, INTEGER, LONG, NUMBER, RAW, VARCHAR , VARCHAR2

Invalid object

Unrecognized database object under the current database and schema.

Host variable

Host variable names.

Difference highlight

The differences between two SQL for the SQL Comparer window.

SQL Options

Optimizer SQL options.

Text Selection

Selected text.

Member Lookup

Member lookup dialog box.

Argument Lookup

Argument lookup dialog box.

Identifier

Any words that do not fall in the above categories.

Foreground color

Specify the foreground color of the selected element; use the Foreground color list or click image\B_Ellipse.gif button to select the desired color. Select the Use default foreground color checkbox to use the Windows default text color.

Background color

Specify the background color of the selected element; use the Background color list or click image\B_Ellipse.gif button to select the desired color. Select the Use default background color checkbox to use the Windows default background color. As the default, this checkbox is selected for all elements.

Editor options

Specify the font style and size of all editable panes.

Reset Default button

Reset the default settings for syntax highlight of the selected element.

To change the color and attribute of a particular element, select the syntax name from the Element option list-box or select the text from the Preview section and change the attributes accordingly. Changes will be reflected on the Preview section, click Apply to implement the changes.

 

Uppercase and Lowercase Text

To change text to uppercase

Select the text and clickimage\B_Uppercase.gif.

To change text to lowercase

Select the text and click image\B_Lowercase.gif.

 

SQL Functions

Quest SQL Optimizer for IBM® DB2® LUW maximizes 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)

SQL Formatter

Database Explorer

SQL Scanner

SQL Inspector

SQL Repository

Index Impact Analyzer

Index Usage Analyzer

 

About SQL Functions

SQL Functions are available in evaluating index-set and SQL alternatives. These functions are:

Show Plan

Run Result (SQL alternatives only)

Run for First Record

Run for All Records

Test for Scalability

Convert Parameter Markers

 

関連ドキュメント

The document was helpful.

評価を選択

I easily found the information I needed.

評価を選択