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

Data query method and data query device

A technology for data query and query results, which is applied in the field of data processing and can solve problems such as easy occurrence of security risks, SQL introduction problems, and decreased processing efficiency.

Active Publication Date: 2014-12-24
INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in actual use, the local dynamic Structured Query Language (Structured Query Language, SQL) in the procedural SQL (Procedural Language / SQL, PL / SQL) language used by the stored procedures of the Oracle database uses binding When variables are fixed, only fixed query conditions can be supported
If the query conditions are not fixed, but you need to use SQL, then you need to use the non-binding variable method to query. However, the non-binding variable SQL query method has the following two problems: 1) It will cause a large number of queries due to the inability to share SQL. 2) Since the variable value is directly written into the SQL statement text in the non-binding variable method, there is a problem of SQL introduction, which is prone to security risks

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
  • Data query method and data query device
  • Data query method and data query device
  • Data query method and data query device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0053] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in further detail below in conjunction with the embodiments and accompanying drawings. Here, the exemplary embodiments and descriptions of the present invention are used to explain the present invention, but not to limit the present invention.

[0054] The inventor considers that in the prior art, there is a technical problem of low security for queries with indeterminate query conditions. However, this problem arises mainly because currently only non-binding variables can be used for indeterminate query conditions. In this regard, a data query method is proposed in this example to solve the above problems, such as figure 1 As shown, the method includes the following steps:

[0055] Step 101: When the variable name is carried in the received structured query language SQL statement, obtain the query condition value input by the user acc...

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 a data query method and a data query device, wherein the method comprises the following steps that when variable names carried in structured query language (SQL) statements are received, query condition values which are inputted by a user according to the variable names are obtained; the variable names and the query condition values are bound; the data types of query results outputted by the execution of the SQL statements are prejudged; according to the prejudged data types, data storage variable arrays are assigned to the query results outputted by the execution of the SQL statements; the SQL statements are executed, the query results are stored into the assigned data storage variable arrays, and the query results stored in the data storage variable arrays are provided for an application. The invention solves the technical problem that under the condition of uncertain query conditions, the SQL method of binding variables cannot be adopted to query data, which causes the low security of data query and the low data processing efficiency of a system, and therefore the technical effect of effectively increasing data query security and data processing efficiency is achieved.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a data query method and device. Background technique [0002] The Oracle database is one of the current mainstream databases. At present, many enterprises use the Oracle database to store enterprise data. In the process of using application software, it is often necessary to query with flexible conditions. For example, a query may have multiple query conditions, but not all query conditions are necessary, and users often only need some of them when using them. conditions to meet the query requirements. Therefore, a flexible query is required to allow users to flexibly grasp the dimension and granularity of the query, so that the results required by the user can be found more conveniently and quickly. [0003] For the above-mentioned flexible query, it can usually be implemented directly in JAVA. However, due to the consideration of the hierarchical design of the system,...

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/2433G06F16/24553
Inventor 黄坚戴明海
Owner INDUSTRIAL AND COMMERCIAL BANK OF CHINA
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