SQL History
DAS can save the SQL statements you executed in the SQL window for future view. You can also execute the SQL statements again with no need to enter them again in the SQL window.
Prerequisites
You have enabled Save Executed SQL Statements in the upper right corner of the SQL Query page. After this function is enabled, executed SQL statements will be saved on the DAS management host.
Constraints on Usage
SQL statement execution records can be stored for up to one year.
Procedure
- Log in to the DAS console.
- Click in the upper left corner and select a region and project.
- Click in the upper left corner, and under Databases, click Data Admin Service.
- In the navigation pane on the left, choose Development Tool.
You can also click Go to Development Tool on the overview page.
- Locate the DB instance that you want to log in to and click Log In in the Operation column.
- On the top menu bar, choose SQL Operations > SQL History.
- On the displayed page, search for execution information about the target SQL statement by time range, database name, or keyword.
Figure 1 SQL history
- To access the Database Management page, click a database name.
- To copy a SQL statement, click it in the SQL Statement column.
- To execute a SQL statement, click Open in SQL window in the Operation column.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot