Updated on 2024-08-29 GMT+08:00

Opening a View

Graphical window for creating a GaussDB view is not available. To create a view, execute SQL statements in the SQL window. For details, see SQL Query.

After a view is created, you can open the view on the DAS console and view data in it.

Precautions

Views do not have primary keys and their data can only be queried.

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 Database Management. On the displayed Objects page, choose Views.
  7. Locate the view you want to open and click Open in the Operation column.

    Figure 1 Opening a view

  8. On the displayed page, view details of the view.

    Figure 2 Viewing details of the view

    You can also perform operations described in Table 1 on the view.

    Table 1 UI operations

    Name

    Description

    Where Condition

    Filters records.

    Copy Row

    Copies data of the selected row. Specifically, double-click the target row and then click Copy Row.

    Copy Column

    Allows you to copy all data in a column by selecting this column from the Copy Column drop-down list.

    Column Settings

    Allows you to set the columns you want to display.

    Refresh

    Allows you to update table data manually.

    Row Details

    Shows details of a specified row.