SQL Console overview
SQL Console is the online SQL editing and query tool provided by AI-Native Database Service. It integrates the SQL Console capabilities of Data Management (DMS) with the Data Copilot intelligent assistant, helping you perform data queries, data operations, and database development through SQL or natural language.
Overview
SQL Console provides a web-based SQL editing and execution environment. You can connect to databases directly from your browser, write and execute SQL statements, view query results, and use AI capabilities to improve development efficiency.
SQL Console is built on the SQL Console capabilities of Data Management (DMS). It retains the professional SQL editing features of DMS and integrates the Data Copilot intelligent assistant, which provides natural-language-to-SQL conversion, SQL writing suggestions, and intelligent error correction.
To access SQL Console, log on to the AI-Native Database Service console and choose AI Data Assets > SQL Console.
Core capabilities
SQL Console provides the following core capabilities:
|
Capability |
Description |
|
SQL editing and execution |
Provides a professional SQL editor with syntax highlighting, auto-completion, multi-statement execution, and execution plan viewing to meet everyday SQL development needs. |
|
Data Copilot |
A built-in AI assistant powered by Qwen, a large language model. It supports natural-language-to-SQL conversion, SQL optimization suggestions, and intelligent error correction to lower the barrier to writing SQL. |
|
Data query and export |
Supports online browsing, sorting, and filtering of query results. You can also export data for further analysis. |
|
Data manipulation |
Supports writing and executing data manipulation statements such as INSERT, UPDATE, and DELETE to insert, update, and delete data. |
|
Data Agent integration |
Integrates with Data Agent capabilities. During SQL development, you can invoke intelligent analysis and data exploration features at any time for deeper data insights. |
Data Copilot intelligent assistant
Data Copilot is the AI assistant built into SQL Console. Powered by the Qwen-Plus large language model, it provides comprehensive SQL development assistance.
Data Copilot supports the following features:
-
Natural-language-to-SQL: Describe your query requirements in natural language, and Data Copilot automatically generates the corresponding SQL statement. For example, entering "query the total order amount for the last 7 days" generates the appropriate SQL query.
-
SQL writing suggestions: While you write SQL, Data Copilot provides intelligent completions and writing suggestions based on the current database context to improve your SQL writing efficiency.
-
SQL optimization suggestions: Analyzes your SQL statements and provides performance optimization recommendations and best-practice guidance to help you write efficient SQL code.
-
Intelligent error correction: Automatically detects SQL syntax errors and provides correction suggestions to reduce execution failures caused by syntax issues.
Workflow
The basic workflow of SQL Console is as follows:
-
Select a database: When you first open SQL Console, the system prompts you to select a target database. Choose the database instance and target database from the list of registered data sources.
-
Write SQL: Write SQL statements in the SQL editor, or use Data Copilot to generate SQL from a natural language description of your query requirements.
-
Execute the query: Click Execute to run the SQL statement and view the query results in the results panel.
-
Analyze the results: Browse, sort, and filter the query results online, or export them to a file for further analysis.
Scenarios
-
Everyday data queries: Business users and data analysts can quickly query business data through SQL Console without installing a local database client.
-
AI-assisted SQL development: Developers can use the natural-language-to-SQL conversion and intelligent completion features of Data Copilot to improve SQL writing efficiency.
-
Database O&M operations: DBAs can use SQL Console to perform database O&M tasks such as data corrections and table schema inspection.
-
Cross-database collaboration: Team members can access multiple database instances through a unified web portal, simplifying collaboration across multi-database environments.
Access SQL Console
To access SQL Console, perform the following steps:
-
Log on to the AI-Native Database Service console.
-
In the left-side navigation pane, choose AI Data Assets > SQL Console.
-
On the SQL Console page, select the target database instance and database, and start writing and executing SQL.
Before you use SQL Console, make sure that the target database is registered in AI-Native Database Service. For more information about data source management, see the related documentation.