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. In the upper left corner of the page, select a database from the drop-down list.

    Figure 1 Selecting a database

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

    Figure 2 Executing SQL plan

  9. View the execution plan.

    • On the Messages tab page, view execution information, including SQL splitting, execution status, and elapsed time.
      Figure 3 Viewing messages
    • On the Execution Plan tab page, view SQL execution details. Execution plan details of SQL statements are displayed on different tabs.
      Figure 4 Viewing the execution plan