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

Method and device for changing tables in database

A database and data technology, applied in the database field, can solve problems such as increasing the difficulty of data governance and maintenance, reducing the rate of version release, data errors, etc., to achieve the goal of reducing the difficulty of data governance and maintenance, strong scalability, and high ease of use Effect

Active Publication Date: 2019-12-31
INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, with the exponential growth of data, when the amount of table change data is huge, manually generating and submitting table change files will reduce the release rate of the version, and when the table is modified in the development environment or test environment, but the table change file is omitted, It will cause inconsistency between the actual deployment environment and the development environment table, causing data errors and increasing the difficulty of subsequent data governance and maintenance

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 changing tables in database
  • Method and device for changing tables in database
  • Method and device for changing tables in database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0058]In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0059] The present invention provides an embodiment of a method for changing a table in a database, see figure 1 , the change method of the table in the database specifically includes the following content:

[0060] S101: Obtain a change instruction for the target table in the database, where the change instruction includes corresponding chan...

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 method and device for changing tables in a database. The method comprises the steps: obtaining a change instruction for a target table in the database, wherein the change instruction comprises corresponding change information; adopting a preset DDL grammar rule, and generating a DDL script based on the target table in the database and the corresponding change information;and automatically calling and executing the DDL script so as to change the target table in the database. According to the method, the change information of the table can be converted into the DDL script, so that the table is changed, and then the table change accuracy is improved, and the table change operation is simple, and the usability is high, and the generalizability is high; and the DDL script is automatically called and executed, so that missing submission of a change file of the table can be avoided, and the consistency of each environment table is further ensured, and the data governance and maintenance difficulty is reduced.

Description

technical field [0001] The invention relates to the technical field of databases, in particular to a method and device for changing tables in a database. Background technique [0002] With the continuous development of the Internet and information technology, the release frequency of application software versions is getting faster and faster. The project corresponding to each version of application software contains multiple sub-applications, and each sub-application calls several databases. Each database contains The database instance (dbname), database owner (dbowner), tables, and data stored procedures. The version release of the application software is actually to package all the changed tables, data storage procedures, codes and other programs under the current version into a version package, use the push tool to push the code to the version library, and deploy the version library to realize the version change. [0003] At present, to change the table of the database c...

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/22G06F16/2455
CPCG06F16/2282G06F16/24564
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