SQL Query

Procedure

  1. In the database list of the Home page, locate the target database and click Query SQL Statements in the Operation column. The SQL Window is displayed.

    Figure 1 Query SQL Statements

  2. In the navigation pane, specify a database, table, or view.

    Figure 2 SQL window
    • Execute SQL: executes SQL statements.
    • Tune SQL: queries the SQL statements that are executed frequently, consume a large amount of resources, or take a long time to execute.
    • Format SQL: improves the readability of SQL statements. If you click this button, the SQL statements are displayed in line break mode but the logic and semantics of the SQL statements will not be changed.
    • Execute SQL Plan: reports the execution of SQL statements to facilitate troubleshooting and optimize SQL processing performance.
    • SQL Favorites: allows you to add, view, and manage frequently used SQL statements.
      Figure 3 SQL statements before formatting
      Figure 4 SQL statements after formatting

  3. After SQL statements are executed, view SQL execution status on the Executed SQL Statements, Messages, and Result Set tab pages.