Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Online structured query language script processing method and apparatus

A structured query and script technology, applied in the database field, can solve the problems of low execution efficiency of SQL scripts on database online, affecting the progress of IT system online, and high labor costs

Active Publication Date: 2017-07-04
CHINA MOBILE GROUP ZHEJIANG
View PDF8 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] (1) High labor costs: Due to the large number of online SQL scripts involved in each IT system launch, for example, each daily launch of the telecom BSS (Basic Service Set) system will involve at least dozens of business requirements, several The change and release of hundreds of SQL scripts requires a large number of database development administrators to test and optimize the online SQL scripts, resulting in high labor costs.
[0007] (2) The quality of the online SQL scripts cannot be guaranteed: due to the inconsistent understanding of the developers on the specification documents on which the online SQL scripts are written, the quality of the online SQL scripts written is uneven, and the database development administrators are not sure about the compliance of the online SQL scripts. Performance testing also depends entirely on personal experience and judgment, and it is difficult to fully control the quality of online SQL scripts
[0008] (3) The execution efficiency of the online SQL scripts is not high: the existing technology only checks the compliance of the SQL statements in the online SQL scripts, and does not optimize the online SQL scripts such as merging. During the process of launching the online SQL scripts, due to the intricate relationship between the online SQL scripts, the database development administrator needs to copy and paste a large number of online SQL scripts into the execution box. During the copying and pasting operations, it is difficult to ensure that no errors occur in the online SQL scripts , at the same time, copying and pasting operations take a lot of execution time, so the execution efficiency of the database online SQL script is not high
[0009] To sum up, when the existing manual method is used to review the online SQL script, there are problems such as high labor cost, unguaranteed quality of the online SQL script, and low execution efficiency, which affect the online progress of the IT system.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Online structured query language script processing method and apparatus
  • Online structured query language script processing method and apparatus
  • Online structured query language script processing method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0046] This embodiment provides a processing method for online SQL scripts, such as figure 1 As shown, the processing flow of the method of this embodiment includes the following steps:

[0047] Step 101, obtaining the online SQL script of the currently processed file in the file list.

[0048] When there is a new function requirement to go online, the developer will first analyze the requirement, and then write the online SQL script according to the writing format of the SQL statement. The writing format of the online SQL script is regulated by the specification document compiled by the implementation, and the storage format of the SQL script is unified. In text format, with .sql or .txt as the file suffix. In order to avoid Chinese garbled characters when the subsequent processing device reads the online SQL script, the encoding format of the SQL script adopts a unified encoding format. After developers write and store online SQL scripts, the processing device will review ...

Embodiment 2

[0107] The embodiment of the present invention also provides a processing device for online SQL scripts, such as figure 2 As shown, the device includes: an obtaining unit 201, an examining unit 202, and a merging unit 203, wherein,

[0108] The obtaining unit 201 is used to obtain the online SQL script of the currently processed file in the file list;

[0109] The review unit 202 is configured to review the SQL statement in the online SQL script obtained by the obtaining unit 201, and output error information, and the error information includes the position information of the wrong SQL statement or wrong comment in the online SQL script and Error description, the error information is used to prompt the operator to modify the error SQL statement or error comment;

[0110] The merging unit 203 is configured to split and merge the canonical SQL statements in each processing file in the file list according to the statement type of the canonical SQL statement checked by the revie...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

An embodiment of the invention discloses an online structured query language (SQL) script processing method. The method comprises the steps of obtaining an online SQL script of a current processing file in a file list; reviewing an SQL statement in the online SQL script, and outputting error information, wherein the error information comprises position information and an error explanation of an error SQL statement or an error annotation in the online SQL script, and the error information is used for prompting an operator to modify the error SQL statement or the error annotation; and for standard SQL statements passing the review, according to the statement types of the standard SQL statements, performing splitting and combination on the standard SQL statements in processing files of the file list. An embodiment of the invention discloses an online SQL script processing apparatus.

Description

technical field [0001] The present invention relates to the field of databases, in particular to a method and device for processing structured query language (Structured Query Language, SQL) scripts. Background technique [0002] Large-scale enterprise information technology (Information Technology, IT) systems are huge and complex, and business requirements are strong. In order to quickly respond to new functional requirements, the IT system needs to be launched quickly and frequently iteratively. Most of the new functional requirements will involve changes in the IT system data model (Data Model), so every time a new functional requirement is launched, the physical model of the database supporting the IT system may be changed. [0003] The normal IT system online process is generally divided into four links: requirement analysis, development, testing, and online. In the online link, it is necessary to execute several online SQL scripts of the database to change the physica...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F17/30
CPCG06F16/2433
Inventor 郭岳张式勤于祥兵周勋谭峰戚靓亮戴伟汤人杰陈波
Owner CHINA MOBILE GROUP ZHEJIANG
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products