Updated on 2023-12-13 GMT+08:00

SQL Execution Plan

This section describes how to analyze the execution efficiency of a SQL statement.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and project.
  3. Click in the upper left corner, and under Databases, click Data Admin Service.
  4. In the navigation pane on the left, choose Development Tool.

    You can also click Go to Development Tool on the overview page.

  5. Locate the DB instance that you want to log in to and click Log In in the Operation column.
  6. On the top menu bar, choose SQL Operations > SQL Query.
  7. Select a database in the upper left corner of the page.

    Figure 1 Selecting a database

  8. Enter a SQL statement in the SQL window and click Execute SQL Plan.

    Figure 2 Executing SQL plan
    • On the Executed SQL Statements tab page, view SQL execution history.
    • On the Messages tab page, view the execution information, including SQL splitting, execution status, and time required.
    • On the Execution Plan tab page, view SQL execution details. Execution plan details of SQL statements are displayed on different tabs.