Chatee ahora con Soporte
Chat con el soporte

SQL Optimizer for DB2 LUW 4.3.1 - User Guide

SQL Optimizer for IBM® DB2® LUW
About SQL Optimizer for IBM DB2 LUW 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

Editor Panes Shortcuts

The following list is the common shortcut keys provided for users to quickly accomplish tasks that is performed frequently within the Editor panes for SQL Editor and SQL Formatter window.

Action

Shortcut Keys

Delete next word

Ctrl+Delete

Delete previous word

Ctrl+Backspace

Delete next character

Delete

Delete previous character

Backspace

Delete current line

Ctrl+Y

Highlight a word 

Shift+Ctrl+Left or Right Arrow

Highlight a character

Shift+Left or Right Arrow

Cursor forward a word

Ctrl+Right Arrow

Cursor backward a word

Ctrl+Left Arrow

Insert mode

Insert

Insert a new line character

Shift+Ctrl+M

Bring up Member Lookup

Ctrl+Spacebar

Bring up Argument Lookup

Shift+Ctrl+Spacebar

Comment

Shift+Ctrl+C

Uncomment

Shift+Ctrl+N

Indent

Shift+Ctrl+I

Outdent

Shift+Ctrl+O

Uppercase

Shift+Ctrl+U

Lowercase

Shift+Ctrl+L

Quick Find

Ctrl+Alt+F

Find

Ctrl+F

Find Next

F3

Replace

Ctrl+Alt+R

Go to Line

Ctrl+Alt+G

Select All

Ctrl A

Cut

Ctrl X

Copy

Ctrl C

Paste

Ctrl V

Undo

Ctrl Z

Save

Ctrl S

 

Indent and Outdent Text

The text can be shifted from left to right or right to left using the Indent and Outdent functions. The number of characters shifted is dependent on the Block indent step size (default = 3 characters) parameter in the Options window.

To indent text

  1. Highlight the text or place the cursor at the line needed to be indented.

  2. Click image\B_Indent.gif.

To outdent text

  1. Highlight the text or place the cursor at the line to be outdent.

  2. Click image\B_Outdent.gif.

 

Member and Argument Lookup

Member and argument lookup are lookup hints to help construct SQL statements.

Member lookup displays the list of database object members for schemas, tables, views and alias.; For example, if a table name or alias is typed followed by "." then the corresponding lookup hint will be the column names. CTRL+SPACE can be used as short-cut keys to bring up the member lookup.

Argument lookup displays the next argument parameter for functions and procedures. For example, if a procedure name is typed followed by "(" then the list of arguments is shown highlighting the next enterable argument. CTRL+SHIFT+SPACE can be used as short-cut keys to bring up the argument lookup.

To enable or disable the member and argument lookup

  1. Click image\B_Options.gif.

  2. Select the Editor tab.

  3. Under the Lookup section, select the Member lookup and/or the Argument Lookup checkboxes .

Member lookup (Default)

Specify whether to show the lookup hint for database object members.

Argument lookup (Default)

Specify whether to show the argument parameters hint for functions and procedures.

Delay (Default = 0.75 sec , Range = 0.5 to 1.5 sec )

Specify the minimum delay time for the lookup hint to appear.

Note: The member lookup selects the information about the database objects from the system view. Since the system view does not contain the information about temporary tables, member lookup does not find the columns in temporary tables.

 

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.

 

Documentos relacionados

The document was helpful.

Seleccionar calificación

I easily found the information I needed.

Seleccionar calificación