IBM Books

Explain SQL Statement

Use the Explain SQL Statement window to dynamically explain an SQL statement and produce an access plan graph. If explain tables do not exist, they will be created.

An explained statement record is added to the Explained Statements History for all successful operations.

Graphic of Controls push button appears here.
Figure rule not displayed.

Before you begin...
Figure rule not displayed.

To dynamically explain an SQL statement:

  1. Open the Explain SQL Statement window.

  2. In the SQL text field, you can:

  3. Optional. Either accept the defaults or enter new values for Query number or Query tag fields.

  4. Optional. Either accept the default or select a different value for Query optimization class.

  5. Optional. Select the Populate all columns in Explain tables check box if you want all columns of explain tables to be populated from the dynamic explain; otherwise, only the few columns needed by Visual Explain are populated from the dynamic explain.

  6. To dynamically explain the SQL statement, click on OK.

[ Top of Page | Table of Contents | Glossary | Index ]

[ DB2 List of Books | Search the DB2 Books ]