Method and device for converting code language

A technology for converting code and code, applied in the database field, can solve the problems of inability to realize compilation and execution, inability to realize cross-language conversion, etc.

Pending Publication Date: 2021-01-15
北京人大金仓信息技术股份有限公司
View PDF10 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In order to be able to compile and execute, the database itself has established a set of conversion rules that can realize the conversion between different data types. However, the conversion rules can only meet the conversion between different data types of Structured Query Language (SQL). Cross-language convers

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 converting code language
  • Method and device for converting code language
  • Method and device for converting code language

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0067] In order to understand the above-mentioned purpose, features and advantages of the present invention more clearly, the solutions of the present invention will be further described below. It should be noted that, in the case of no conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other.

[0068] In the following description, many specific details have been set forth in order to fully understand the present invention, but the present invention can also be implemented in other ways different from those described here; obviously, the embodiments in the description are only some embodiments of the present invention, and Not all examples.

[0069] The term "and / or" in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist simultaneously, and there exists alone B these three s...

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 embodiment of the invention provides a method and device for converting a code language, and relates to the technical field of databases. The method comprises the steps of obtaining a first data type and a data type of an SQL code corresponding to a source code; obtaining a second data type according to the first data type and the first corresponding relationship, wherein the second data typeis a data type of an execution tree corresponding to the SQL code of the first data type; obtaining a third data type according to the second data type and the second corresponding relationship, wherein the third data type is a data type of a C language corresponding to the execution tree of the second data type; converting the source code into an execution tree of which the data type is a seconddata type; and converting the execution tree into a C language code of which the data type is a third data type. The method is used for realizing data processing of the database in a compilation execution mode under the condition that the source code is the SQL code and the target code is the C language code.

Description

technical field [0001] The invention relates to the technical field of databases, in particular to a method and device for converting code languages. Background technique [0002] As an indispensable part of the computer system, the database plays a vital role in data storage and processing, and the efficiency of data processing is a very important indicator for evaluating the function of the database. [0003] Traditional databases use interpretation and execution for data processing. Specifically, the source codes are converted into object codes one by one, and each time a source code is converted in the conversion process, a corresponding object code is executed to realize data processing. However, since this method of interpretation and execution requires the conversion of the source code one by one during data processing, and the execution speed of the target code is slower than that of the native code, the method of interpretation and execution cannot meet the require...

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): G06F8/51
CPCG06F8/51Y02D10/00
Inventor 杜春魁杜胜黎鑫冯玉
Owner 北京人大金仓信息技术股份有限公司
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