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

SQL Favorites

This section describes how to add frequently-used SQL statements and view and manage them.

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. Choose SQL Favorites.

    Figure 2 SQL favorites
    • Add SQL Statement: allows you to add frequently-used SQL statements. Specifically, specify a title, select an application scope, enter SQL statements, and then click Save.
      Figure 3 Adding a SQL statement
    • Insert SQL Statement: allows you to view the SQL statements you have added. If there are no SQL statements stored in your account, this option will not be displayed.
    • Manage SQL Statements: allows you to manage your SQL statements, including adding, editing, and deleting statements.
      Figure 4 Managing SQL statements