Updated on 2025-05-21 GMT+08:00

SQL Query

You can run SQL statements in a SQL window, which helps you easily manage databases.

SQL Query

Figure 1 SQL Query
Table 1 Function description

Function

Description

Execute SQL

Executes SQL statements.

Format SQL

Improves readability of SQL statements. Formatting SQL statements enables statements to be displayed in line break mode, but does not change their logic and semantics.

All SQL statements in the SQL window will be formatted. You cannot format only one of them.

Executing SQL Plan

Reports execution of SQL statements to make troubleshooting easy and optimize SQL processing performance.

SQL Favorites

Allows you to add, view, and manage frequently-used SQL statements.

Save Executed SQL Statements

After this function is enabled, the system saves the recently executed SQL statements to the server.

SQL Input Prompt

Helps you quickly enter a specific database, table, or field name when you enter a SQL statement in the SQL window.

Full Screen

Shows SQL statements on a full screen.

SQL History

Shows the SQL execution details.

Messages

Shows the information returned after a SQL statement is executed.

Result Set

Shows SQL execution results.

Allows you to view details about a single row, copy a row, copy a column, set a column, and more.

Overwrite/Append Mode

  • Append Mode: Each time a SQL statement is executed, the new result set is appended to the previous one.
  • Overwrite Mode: Each time a SQL statement is executed, the new result set overwrites the previous one.

How to Open SQL Query

  1. Log in to the Huawei Cloud 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.