Method and device for inserting data

A data and data table technology, applied in the field of information, can solve the problems of low data insertion efficiency, data insertion failure, poor database data insertion effect, etc., to optimize the insertion effect and improve the insertion efficiency.

Active Publication Date: 2017-08-25
GUANGZHOU HUADUO NETWORK TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Since manually created database insert statements are prone to errors, and the creation process is time-consuming, the efficiency of inserting data in the database is low
In addition, inserting data into the database directly through the database API according to the database insertion statement may easily cause data insertion failure, making the insertion effect of database data poor

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
  • Method and device for inserting data
  • Method and device for inserting data
  • Method and device for inserting data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0059] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0060] In view of the current problem that when inserting data into the database, it is necessary to manually create a database insertion statement, which makes the efficiency of inserting data into the database low, the embodiment of the present invention provides a method for inserting data, see figure 1 , the method flow includes:

[0061] 101: Obtain an entity class established according to data table metadata corresponding to at least one data table, the entity class includes a check value, and each data table corresponds to an entity class;

[0062] As an optional embodiment, obtaining an entity class established according to data table metadata corresponding to at least one data table includes:

[0063] Obtain data table metada...

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 method and a device for inserting data, belonging to the field of information technology. The method includes: obtaining an entity class including a verification value established according to the data table metadata corresponding to at least one data table; when the verification value included in the determined entity class corresponding to the data table is successfully verified for the data to be inserted, Insert the data to be inserted into the data table according to the entity class corresponding to the data table. The present invention obtains the entity class including the verification value established according to the data table metadata corresponding to at least one data table, and the data to be inserted is successfully verified according to the verification value included in the entity class corresponding to the data table to be inserted When inserting the data to be inserted into the data table according to the entity class corresponding to the data table, the automatic insertion of the data is realized; in addition, since the entity class includes a check value, the data can be checked before inserting the data into the data table Checking not only improves the efficiency of data insertion, but also optimizes the effect of data insertion.

Description

technical field [0001] The invention relates to the field of information technology, in particular to a method and device for inserting data. Background technique [0002] With the continuous development of information technology, the amount of data increases rapidly, which makes the scale of the database larger and larger. By accessing the database, operations such as inserting data can be performed on the database, thereby managing the data in the database. When inserting data into the database, if the inserted data does not conform to the settings of the database, the insertion will fail. Therefore, how to insert data into the database becomes a concern. [0003] At present, when accessing the database, the database is connected through the database API (Application Programming Interface, application programming interface); the database insertion statement is manually created; and the data is inserted into the database through the database API according to the database ...

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 Patents(China)
IPC IPC(8): G06F17/30
CPCG06F16/86
Inventor 黄伟
Owner GUANGZHOU HUADUO NETWORK TECH
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