Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Database query field generation method and apparatus

A technology for query fields and data query, applied in the database field, can solve the problem of inability to define query fields freely, and achieve the effect of satisfying query requirements

Active Publication Date: 2017-03-08
BEIJING GRIDSUM TECH CO LTD
View PDF6 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The invention provides a method and device for generating database query fields, which can solve the problem that users cannot freely define query fields in the prior art

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
  • Database query field generation method and apparatus
  • Database query field generation method and apparatus
  • Database query field generation method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0027] In order to solve the problem in the prior art that users cannot freely define query fields, an embodiment of the present invention provides a method for generating database query fields. This method is mainly, but not limited to, applied to relational databases. The relational database includes: Oracle, DB2, Microsoft SQL Server, Microsoft Access, MySQL, etc. Such as figure 2 As shown, the method includes:

[0028] 201....

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 discloses a database query field generation method and apparatus, which relates to the technical field of databases and is invented for solving the problem that a user cannot freely define query fields. The method comprises the steps of receiving a field definition rule established based on a basic data structure, wherein the field definition rule contains one or more query fields in the basic data structure and an operational relationship among the one or more query fields; verifying whether the field definition rule conforms to a query rule of the basic data structure or not; and if the field definition rule conforms to the query rule of the basic data structure, generating a relationship table corresponding to the field definition rule in a database, generating self-defined query fields corresponding to the field definition rule, and storing the self-defined query fields. The method and the apparatus are mainly applied to a process of performing field self-definition on the relational database.

Description

technical field [0001] The invention relates to the technical field of databases, in particular to a method and device for generating database query fields. Background technique [0002] In a relational database, data is stored in the form of a two-dimensional relational table. A row of data in a relational table is called a record, and a column of data is called a field. For example in figure 1 In the student information table shown, columns such as "Name", "Age", "Gender", and "Grade" are each a field, and contain information such as "Wenji", "20", "Male", and "Freshman" A whole row of data content is a record. When querying data, fields are usually used as query dimensions, for example, to find all student information whose gender is "male", or to find all student information whose age is between "20 years old" and "23 years old". Therefore, from the user's point of view, the fields in the relational table are generally called query fields. [0003] In practical appli...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/2282G06F16/284
Inventor 李亚东
Owner BEIJING GRIDSUM TECH CO LTD
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
Eureka Blog
Learn More
PatSnap group products