Error correction method, device and equipment for SQL (Structured Query Language) statement, medium and program product

CN119990108APending Publication Date: 2025-05-13TENCENT TECHNOLOGY (SHENZHEN) CO LTD
0 Cites 2 Cited by

Patent Information

Application Number
CN202510072586.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-16
Publication Date
2025-05-13

Smart Images

  • Figure CN119990108A_ABST
    Figure CN119990108A_ABST
Patent Text Reader

Abstract

The invention discloses an SQL statement error correction method and device, equipment, a medium and a program product, and belongs to the field of artificial intelligence. The method comprises the steps of obtaining a first SQL statement and execution error information of the first SQL statement, wherein the execution error information is used for representing error information obtained by executing or pre-executing the first SQL statement; determining a first error category corresponding to the first SQL statement based on the execution error information; and inputting the first SQL statement and the first error category into a first large language model, and outputting an error correction result of the first SQL statement through the first large language model. According to the scheme, the wrong first SQL statement can be converted into the corresponding first error category, so that the first large language model executes targeted error correction for the first error category, and the error correction accuracy of the first SQL statement is improved.
Need to check novelty before this filing date? Find Prior Art

Citation Information

Cited By

  • Structured query statement generation method and device and related product

    CN121658508A

  • Structured query statement generation method and device and related products

    CN121658508B