Sql automatic execution method and system for database sql statement automatic generation tool

An automatic generation and automatic execution technology, applied in the database field, can solve the problems of inconvenient testers to locate bugs, low test efficiency, and failure to generate, etc., to achieve the effects of saving test time, convenient positioning, and eliminating linking links

Active Publication Date: 2018-08-14
福建星瑞格软件有限公司
View PDF7 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The sql query statement automatic generation tool is a tool that is often used when testing database functions and performances. However, after the existing database sql statement automatic generation tools generate sql script files, the generated sql script files need to be manually executed by the tester. sql script file, and the log cannot be generated and output during execution. Therefore, not only the test efficiency is relatively low, but also it is inconvenient for testers to locate the bug location

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
  • Sql automatic execution method and system for database sql statement automatic generation tool
  • Sql automatic execution method and system for database sql statement automatic generation tool

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] Please refer to figure 1 and figure 2 As shown, the preferred embodiment of the sql automatic execution method of the database sql statement automatic generation tool of the present invention, the method comprises the following steps:

[0031] Step S1, interconnecting the sql query statement automatic generation tool with the database;

[0032] The step S1 is specifically: interconnecting the sql query statement automatic generation tool and the database through the ODBC connection technology.

[0033] Step S2, obtain the table structure information of the table to be queried and the function information of all supported built-in functions from the database;

[0034] The step S2 is specifically:

[0035] Obtain the column name of the table to be queried and the type information of each column in the table from the database, and obtain the function name of all supported built-in functions, the function return value type, the number of parameters the function contains...

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

The present invention provides a sql automatic execution method for a database sql statement automatic generation tool. The method comprises that: the sql query statement automatic generation tool isinterconnected with the database; table structure information of a to-be-queried table and function information of all supported built-in functions are obtained from the database; the database sql statement automatic generation tool reads the table structure information and the function information, and uses the random algorithm to generate sql query statements; the database sql statement automatic generation tool calls an interface function connected with the database to automatically execute the sql query statements, and outputs the generated log in the execution process to a log file in real time; and after executing the sql query statements, the execution results are automatically counted and output. The present invention also provides a system corresponding to the method. The advantages of the technical scheme of the present invention are that the sql query statement generated by the sql query statement automatic generation tool can be automatically run in the database, so that the link between the script and the execution can be eliminated, and the test time is saved.

Description

technical field [0001] The invention relates to the field of databases, in particular to a SQL automatic execution method and system of a database SQL statement automatic generation tool. Background technique [0002] Database (Database) is a warehouse that organizes, stores and manages data according to the data structure. It was produced more than 60 years ago. With the development of information technology and the market, especially after the 1990s, data management It is no longer just storing and managing data, but has transformed into various data management methods required by users. [0003] In recent years, with the development of big data, there are more and more types of databases, different SQL syntax and usage methods, and higher and higher requirements for functions and performance. The sql query statement automatic generation tool is a tool that is often used when testing database functions and performance. However, the existing database sql statement automati...

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/2282G06F16/2433
Inventor 吴游颖林荫峰蔡世平方超
Owner 福建星瑞格软件有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products