Supercharge Your Innovation With Domain-Expert AI Agents!

SQL statement checking method and device

An inspection method and statement technology, applied in the field of SQL inspection, can solve the problems of false positives, inability to accurately locate tables with a small amount of data, low adaptability of SQL statements and parameter diversity, etc., so as to reduce the false positive rate and get rid of The effect of configuring dependencies and reducing hidden dangers

Pending Publication Date: 2021-08-13
INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, there are static code scanning and dynamic monitoring systems for sql inspection methods that cannot match the index. Static code scanning is not very adaptable to the diversity of sql statements and parameters. False positives, tables with a small amount of data cannot be accurately located in the test environment

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 statement checking method and device
  • SQL statement checking method and device
  • SQL statement checking method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] The embodiment of the present invention provides a SQL statement checking method and device, which can be used in the financial field or other fields. It should be noted that the SQL statement checking method and device of the present invention can be used in the financial field, and can also be used in financial fields Any field, the application field of the SQL statement checking method and device of the present invention is not limited.

[0049] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0050] Such as ...

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 invention provides an SQL statement checking method and device, which can be used in the financial field or other fields. The method comprises the following steps: performing statement extraction on an obtained application log file to obtain text data; obtaining data information according to the text statement and the incoming parameter, and inputting the data information corresponding to the text statement into a pre-established prediction model to obtain a statement prediction result corresponding to the text statement; if the statement prediction result is an SQL statement, generating a complete SQL statement according to the text statement and the incoming parameter; and obtaining a corresponding execution plan result, and generating a statement check result according to the statement prediction result and the execution plan result corresponding to the complete SQL statement. The application log file is analyzed to obtain the text statement, the text statement is predicted in combination with the prediction model and the execution plan result, the hidden danger of full-table scanning is reduced, meanwhile, the configuration dependence of static code scanning is eliminated, and compared with dynamic monitoring, the method is more targeted, and the false alarm rate is reduced.

Description

technical field [0001] The invention relates to the technical field of SQL checking, in particular to a method and device for checking SQL statements. Background technique [0002] A database management system is a large-scale software for manipulating and managing databases, which is essential in any platform and system. The data manipulation language DML (Data Manipulation Language) it provides allows users to add, delete, check, and modify data. Especially in distributed systems and large-scale applications, the amount of data is large, there are many tables involved, and the operation of data is more frequent and the logic is complex. Therefore, the requirements for writing sql statements for data operations are higher. Different sql statements consume more The time may vary greatly. Executing sql leads to full table scan is also one of the reasons for the timeout and downtime encountered at present, so it is extremely important to retrieve the sql that does not match th...

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): G06F16/242G06F40/242G06N3/04G06N3/08
CPCG06F16/2433G06F40/242G06N3/08G06N3/045
Inventor 黄琼贺克军李美娜李文婷
Owner INDUSTRIAL AND COMMERCIAL BANK OF CHINA
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More