SQL语句执行方法和装置、计算机设备、存储介质

By establishing a mapping relationship between database tables and physical tables, the problem of slow database table query speed is solved, enabling efficient SQL statement execution and flexible database development.

CN116303542BActive Publication Date: 2026-07-17JINGDONG TECH HLDG CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
JINGDONG TECH HLDG CO LTD
Filing Date
2023-03-23
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

In existing technologies, the data query processing speed of specific database tables is relatively low, especially when the amount of data in the related tables is large, the query processing speed will drop significantly.

Method used

By obtaining the description information, configuration information, and database resource information of the target database table, the target translator and the target physical database resources are determined. The first SQL statement is translated into a second SQL statement executable by the target physical database using the first mapping relationship. The mapping relationship is directly established between a single database table and a single physical table, avoiding the query conversion process between multiple database related tables.

Benefits of technology

It improves data query speed, reduces the difficulty and cost of developing and maintaining heterogeneous databases, enhances development flexibility, and avoids modifications to physical table definitions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116303542B_ABST
    Figure CN116303542B_ABST
Patent Text Reader

Abstract

本公开提供一种SQL语句执行方法和装置、计算机设备、存储介质;涉及计算机技术领域。该方法包括:获取针对目标数据库表的第一SQL语句,第一SQL语句包括目标数据库表的描述信息、配置信息和数据库资源信息;在数据库资源信息中确定目标翻译器和目标物理数据库资源;目标翻译器包括物理表与目标数据库表之间描述信息的第一映射关系;将第一SQL语句中目标数据库表的描述信息替换成物理表对应的描述信息,得到第二SQL语句;连接目标物理数据库资源,以执行第二SQL语句。本公开可以解决相关技术中特定数据库表的数据查询处理速度低的问题。
Need to check novelty before this filing date? Find Prior Art