Updated on 2024-08-29 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 DAS 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.

    Figure 1 Opening the SQL window

  7. In the SQL window, click 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 frequently-used SQL statements, including adding, editing, and deleting statements.
      Figure 4 Managing SQL statements