SQL (Structured Query Language)-based database management method and device
A management method and management device technology, applied in the field of computer applications, can solve problems such as low work efficiency, manual execution, and inability to judge and save the execution status of each script, so as to reduce maintenance costs, reduce manual intervention, and improve execution efficiency. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment approach
[0050] In a preferred implementation manner, in order to improve execution efficiency, when there are multiple database management task items, the corresponding multiple SQL scripts are executed in parallel with multiple threads.
[0051] In the situation based on the above two preferred implementation manners, after performing all the steps of S300-S302, the SQL-based database management method further includes the following steps S306 or S305:
[0052] S306 (S305), save the result after execution of each SQL script, and form a SQL script execution result set.
[0053] refer to figure 1 , which describes the configuration stage flow of the SQL-based database management method provided by the embodiment of the present invention, specifically as follows:
[0054] Step 101, classify database management application requirements, and determine a database management task item set.
[0055] Step 102, compile and debug corresponding SQL scripts according to each database management...
Embodiment 1
[0078] Example 1 Database service upgrade
[0079] Scenario description: Due to the upgrade of business requirements, the corresponding data of the database to be managed needs to be updated. For example, in this embodiment, the target of the upgrade includes the following items:
[0080] 1. Add a table;
[0081] 2. Add a field to a table.
[0082] Its implementation steps include the following configuration phases and operation phases, which are introduced as follows:
[0083] configuration phase
[0084] 1. Determine the database management task item set according to the application requirements:
[0085] Database management task item 1: add tables;
[0086] Database administration task item 2: Update tables.
[0087] 2. Write SQL scripts according to database management task items, for example:
[0088] AddTable.sql text content:
[0089] CREATE TABLE...;
[0090] UpdateTable.sql text content:
[0091] ALTER TABLE...;
[0092] 3. Configure the logical mapping fil...
Embodiment 1
[0103] This embodiment is generally applicable to the following situations:
[0104] No return set for task item.
[0105] SQL scripts only need to be run once.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com