SQL Console Queries
The SQL window lets you conveniently execute various SQL statements. It also supports visual operations on the target database, such as creating, deleting, modifying, and querying data. This makes it ideal for data querying and data development.
Prerequisites
You must have query permissions on the target database or table. To apply for permissions, see Apply for asset permissions by submitting a ticket.
SQL window interface
The SQL window consists of four main sections: the Visual Operation Area (①), the Extended Features Area (②), the Command Execution Area (③), and the Execution Results Area (④). The following table describes these sections.
Table 1. SQL window interface overview
|
# |
Area |
Description |
|
① |
Visual Operation Area |
Manage your database visually.
|
|
② |
Extended Features Area |
The following features are available:
|
|
③ |
Command Execution Area |
Enter an SQL statement and click Execute to perform operations on the database. Other features are also available, such as Format, execution plan, and Settings.
Note You can click the |
|
④ |
Execution Results Area |
After you execute an SQL statement, the results appear here. Note Click Execution History to view the SQL execution history, which includes details such as the start time, database, and SQL, and can be exported. |
Procedure
-
Log on to the Yaochi console - Data + AI studio.
In the Select Database dialog box, search for and select a database, and then click Confirm.
-
In the Log on to Instance dialog box, enter the database account and database password.
In the SQL Console area, enter an SQL statement, and then click Execute.
Related documents
-
After you understand the features of the SQL Console interface, you can create tables, query data, or modify data in the SQL Console. For more information, see Get started with the SQL Console.
-
To perform cross-database queries, see Cross-database query.
(Table List): Click this icon to switch to the Table List page, and click the
icon to return to the Query page.
icon in the upper-right corner of the page to open multiple SQL Console windows.