Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

4067 results about "Table (database)" patented technology

A table is a collection of related data held in a table format within a database. It consists of columns, and rows. In relational databases, and flat file databases, a table is a set of data elements (values) using a model of vertical columns (identifiable by name) and horizontal rows, the cell being the unit where a row and column intersect. A table has a specified number of columns, but can have any number of rows. Each row is identified by one or more values appearing in a particular column subset. A specific choice of columns which uniquely identify rows is called the primary key.

Method and system for realizing Text2SQL (Structured Query Language)

The invention discloses a Text2SQL (Structured Query Language) implementation method and system, and relates to the field of data processing, and the method comprises the following steps: firstly, receiving a natural language query, and analyzing a query intention, field classification and a key entity through a planner; the searcher obtains domain knowledge, entity information, a database table structure and a historical query mode in a multi-path parallel mode based on the planning result; the generator constructs an SQL framework according to the retrieval result and generates an initial statement; the verifier carries out grammar, table field, authority and logic multi-dimensional verification on the SQL, and if the verification fails, iteration adjustment is carried out to generate logic; when the SQL is executed, the result is formatted and a natural language explanation containing query logic, a data source and a calculation method is generated if the SQL is executed successfully, and a diagnosis and error correction mechanism is started for correction and then rechecking is performed if the SQL is executed unsuccessfully. According to the method, through deep fusion of domain knowledge, whole-process verification error correction and interpretability enhancement, the accuracy, robustness and user interaction experience of SQL conversion in a professional scene are improved.
Owner:XUNTU TECH (SHANGHAI) CO LTD

Method, system and device for converting natural language to SQL (Structured Query Language) query statement and medium

The invention provides a method, system and device for converting a natural language into an SQL query statement and a medium, relates to the technical field of artificial intelligence, and is particularly suitable for improving the efficiency and accuracy of interaction between non-technical users and a database. According to the method, a natural language query instruction of a user is analyzed through a general large language model, a target table is accurately matched through a knowledge graph and a neural network technology, SQL query semantics are formed, then the SQL query semantics are intelligently converted into SQL query statements through an SQL industry large model and a thinking chain mode, and finally query results are executed and returned. According to the method, the problems of low efficiency and inaccurate result in the process of processing complex queries in the prior art can be solved, so that a user can conveniently describe query requirements through a natural language, and quick and accurate data retrieval is realized.
Owner:UNICOM (HENAN) IND INTERNET CO LTD

Automated Prompt Augmentation And Engineering Using ML Automation In SQL Query Engine

A database system generates a prompt for an LLM or other machine learning (ML) model to narrow the search space to highly relevant information about a database. A distinct instance of a classifier, a clustering algorithm, or a topic modeling model can be trained based on information from ML automation within the database system, respectively for each column or table in the database. Model instances can then be used during generative LLM inferencing to identify relevant sources of data to answer the user's question. Thus, the prompt generation combines ML automation and other ML models or an LLM for topic modeling and schema description.
Owner:ORACLE INT CORP

Database migration method and device, equipment and medium

The invention relates to the technical field of data processing, can be applied to business scenes of financial science and technology, medical health and the like, and discloses a database migration method, device, equipment and medium. And deploying a double-write control module of the application program layer to write the source database and the target database in parallel, and completing consistency verification through a data verification comparison task. And controlling a target database write-in channel according to a difference analysis result, closing a source database write-in channel in combination with a service takeover state, and completing a migration process from the source database to the target database. According to the method, full migration, application layer double writing, differential data verification and dynamic write-in channel control are combined, data consistency of the source database and the target database in the migration process is guaranteed, the source database and the target database are safely switched to after the service takeover capacity is verified, and the migration safety and continuity are improved.
Owner:CHINA PING AN LIFE INSURANCE CO LTD

Method for converting natural language to SQL (Structured Query Language) based on large language model

The invention discloses a method for converting a natural language to an SQL (Structured Query Language) based on a large language model, and relates to the technical field of information. Analyzing an input natural language query by using a pre-trained large language model, automatically pruning a database mode, and excluding tables and fields irrelevant to the query; 2, carrying out SVL skeleton prediction, and constructing a predictable SQL skeleton based on a large language model prediction SQL skeleton on the basis of a cut database mode and an input natural language query; step 3, sample selection; selecting an SQL sample matched with the predicted SQL skeleton from a predefined SQL sample library according to the predicted SQL skeleton; step 4, performing database adaptation; the SQL generated by the large language model is adjusted according to the specific database, and the specific SQL query of the database is corrected, so that the generated SQL statement can be executed in the specific database environment.
Owner:FUDAN UNIVERSITY

Generating a schema graph of sub-tables in a database for queries using a large language model

The present disclosure relates to systems, non-transitory computer-readable media, and methods for linking a database schema to a natural language query. In particular, in some embodiments, the disclosed systems determine, from tables in a database schema, a subset of tables relevant to a natural language query by comparing embeddings for the tables in the database schema and embeddings for the natural language query. Additionally, in some implementations, the disclosed systems select, from a schema graph comprising nodes that represent the tables in the database schema, an additional table along a path between a pair of nodes representing a pair of tables from the subset of tables. Moreover, in some embodiments, the disclosed systems determine a set of relevant tables by appending the additional table to the subset of tables. Furthermore, in some implementations, the disclosed systems generate, from the set of relevant tables, a response for the natural language query.
Owner:ADOBE INC

Method and system for realizing data synchronization between heterogeneous databases based on logs

The invention discloses a method and a system for realizing data synchronization between heterogeneous databases based on logs. The method comprises the following steps: acquiring connection information of a source database and a target database; querying a table structure of the source end database and generating an SQL statement to establish a data mapping rule; matching a corresponding rule model from a mapping rule model library; if the matching is not successful, the system abnormally quits and prompts the user to create a new mapping model and add the new mapping model to the mapping rule model base; converting a table structure of the source end database into a JSON character string based on a standard field type; an SQL statement required by the target database is output through the data mapping engine module; the message monitoring program reads the data in the temporary storage area and converts the data into data meeting the requirements of the target database; formatting the converted data into SQL statements supported by a target database; and sending the generated SQL statement to a target database to complete data migration. Accurate and controllable synchronization of the data and the model in a heterogeneous environment is realized.
Owner:FUJIAN FUJITSU COMM SOFTWARE CO LTD

Library query system, method and equipment based on information retrieval and large model and medium

The invention discloses a library query system, method and equipment based on information retrieval and a large model and a medium. The system comprises a table retriever, a field retriever, an SQL (Structured Query Language) skeleton retriever, a large model agent and an intelligent error correction module, wherein the table retriever, the field retriever and the SQL skeleton retriever are respectively used for performing table retrieval, field retrieval and SQL statement skeleton query according to a question input by a user to obtain a target table, a target field and a target SQL statement skeleton; the large model agent is used for generating a target SQL statement corresponding to the question input by the user according to the target table, the target field and the target SQL statement skeleton; and the intelligent error correction module is used for performing intelligent error correction on the target SQL statement. Based on information retrieval, small sample learning and large model technologies, an intelligent access scheme for generating the SQL around the text is constructed, and good support can be provided under various database modes and complex data query scenes.
Owner:CHINA TELECOM ARTIFICIAL INTELLIGENCE TECHNOLOGY (BEIJING) CO LTD

Shard management for scaling database tables

Shard management may be implemented for scalable database tables. A table may be identified as aligned with another table of the database according to a common shard key across multiple shards that are mapped to respective storage volumes of a data store of the database according to a placement hierarchy. Different portions of the table may be stored across the shards as respective table slices with corresponding portions of the other table as respective other table slices with same values of the shard key. Metadata for performing access requests to the database may be updated to identify individual ones of the table slices stored with individual ones of the other table slices as respective table slice groups that are mapped to respective ones of the shards in the placement hierarchy.
Owner:AMAZON TECH INC

Text-to-structured query language conversion method based on large language model

A text-to-structured query language conversion method based on a large language model comprises the steps that database outline information is cut, and tables and columns needed by query of a non-target structured query language SQL are eliminated through correlation scoring and Steiner tree problem solving; screening context samples, predicting a similarity score from a text to a structured query language Text-to-SQL by using a cross encoder language model, and selecting a sample most related to a query problem; and injecting the cut database table and column information and the screened context sample into a cue word template, and generating an SQL query statement by using a large language model. The method can be used for optimizing the automatic conversion process from the natural language to the SQL and improving the conversion accuracy, and is used for providing a quick and convenient database retrieval mechanism for a non-SQL user and providing applications such as a data access mode in a wider form for mechanisms such as big language model retrieval enhancement generation RAG and the like.
Owner:TSINGHUA SHENZHEN INTERNATIONAL GRADUATE SCHOOL

Natural language to SQL on custom enterprise data warehouse powered by generative artificial intelligence

Systems and methods for translating natural language to SQL on a custom enterprise data warehouse powered by Generative AI. With an embodiment of the present invention, a natural language question may be converted to a meaningful and accurate database query, e.g., SQL query, relevant to tables existing in an enterprise data warehouse. An embodiment of the present invention is directed to a comprehensive approach of transforming a natural language query to a focused SQL query using domain specific data models across firmwide metadata systems and data systems. In response to a user query, an embodiment of the present invention performs metadata analysis, targeted data retrieval and then SQL generation. An embodiment of the present invention may apply data warehousing standards and guidelines followed in the enterprise and provide a plug-and-play type architecture and solution that is scalable to large warehousing and other systems.
Owner:MORGAN STANLEY SERVICES GROUP INC

Method for generating SQL (structured query language) from natural language based on bidirectional mapping and semantic analysis

The invention provides a method for generating an SQL (Structured Query Language) by a natural language based on bidirectional mapping and semantic parsing, which relates to the technical field of database query and comprises the following steps of: extracting natural language query elements and packaging the natural language query elements into structured data, and establishing a mapping relationship from a query field to a service attribute and a physical data table by adopting a bidirectional Hash index technology; and automatically identifying multi-table association keys, performing semantic extension and compliance verification, generating an abstract syntax tree, performing processing according to user permission, and finally converting the abstract syntax tree into an SQL statement conforming to a target database syntax specification. According to the method, the accuracy and the efficiency of converting the natural language into the SQL are improved, and the flexibility and the safety of the system are enhanced.
Owner:北京科杰科技有限公司

Multi-table joint natural language query SQL generation method

The invention discloses a multi-table combined natural language query SQL (structured query language) generation method, which comprises the following steps of: 1, constructing a database meta-knowledge graph, and establishing a triple storage comprising a table structure, a primary and foreign key relationship and business description for each data table; 2, receiving a natural language query request, and calculating the topic relevancy between query semantics and each database table through a pre-trained topic matching model; 3, dynamically constructing a view, and logically associating the database tables of which the theme relevancy exceeds a threshold value to form a temporary view; 4, generating a context enhancement prompt, and combining the temporary view structure, the field semantic description of the view and the view content sample to form a structured prompt; 5, inputting the natural language query and the structured prompt into the large language model to generate candidate SQL statements; and step 6, executing verification and iterative optimization on the candidate SQL statements, verifying logic correctness through SQL execution plan analysis and result sampling, and triggering and prompting a reconstruction mechanism when detection is abnormal.
Owner:THE 28TH RES INST OF CHINA ELECTRONICS TECH GROUP CORP

Data fragmentation and table division autonomous extension system and method

The invention discloses a data fragmentation and table division autonomous expansion system and method, relates to the technical field of data processing, and aims to solve the problem that the operation and maintenance cost is increased due to the fact that an existing fragmentation and table division technology mainly depends on manual configuration and management. A fragmentation strategy is automatically adjusted and optimized; the data dynamic migration module is used for migrating the data by adopting an intelligent scheduling algorithm and monitoring the migration process in real time; and the load balancing module is used for acquiring the performance index of each database node, dynamically adjusting a request routing strategy and redistributing data aiming at the load imbalance condition. The invention further discloses a corresponding method. According to the method, the fragmentation strategy can be automatically adjusted according to the data volume and the access mode, and dynamic migration and load balancing of the data are realized, so that the data processing efficiency and the system expansibility are improved.
Owner:HANGZHOU YIHE INTERNET SOFTWARE TECH CO LTD +1

Method and system for managing visualization tables of databases of different types

The invention provides a different types of database visualization table management method and system, and relates to the technical field of computers.The method comprises the steps that a database general operation system comprising a general operation interface and a dialect abstract base class is constructed, and a query performance evaluation system is established based on performance data; and predicting an optimal database connection mode through deep reinforcement learning and generating a multi-stage execution plan. Meanwhile, an anomaly feature knowledge base based on a graph neural network is constructed, and anomaly prediction and preventive processing are carried out based on the anomaly feature knowledge base. A multi-stage execution plan is executed after a database operation request is subjected to grammar adaptation, and a distributed transaction processor dynamically adjusts a transaction isolation level and a concurrency control parameter. And finally, according to the terminal and the data volume, selecting a proper data display mode to carry out visual presentation.
Owner:北京科杰科技有限公司

Database adaptive migration method and system based on credential environment

The invention provides a database adaptive migration method and system based on a credential environment, and relates to the technical field of data processing.The method comprises the steps that an intelligent migration model is used for analyzing the structure, including a table structure, index configuration, constraint conditions and data types, of a source database, data size distribution is calculated, and a source database structure feature result is generated; according to a source database structure feature result, automatically selecting and configuring a target database type, adjusting environment parameters of a target database, and generating target database configuration information; according to the structure of a source database and configuration information of a target database, a data mapping rule is automatically established by utilizing an intelligent migration model, and the data mapping rule comprises automatic correspondence of table names and field names, automatic conversion of data types, and an automatic migration scheme of indexes and constraints. According to the method, automatic and intelligent migration from the source database to the target database is realized through the intelligent migration model, the performance is automatically optimized, the migration report is generated, and the migration efficiency and quality are improved.
Owner:FUJIAN QIXIANGSI NETWORK TECHNOLOGY CO LTD

Knowledge base construction method, data processing method, equipment, storage medium and program product

The embodiment of the invention provides a knowledge base construction method, a data processing method, equipment, a storage medium and a program product. The method comprises the following steps: generating table description information of a data table in database data and field description of the data table based on the database data and document data; identifying table relation information corresponding to the data table from historical query statements of the database data; therefore, the asset knowledge base can be constructed based on the table description information, the field description information and the table relation information, the table description information and the field description information are generated not only based on the database data, but also based on the document data, and the table relation information is recognized and obtained from the table description information and the field description information in combination with the historical query statements and the document data. Therefore, the information in the constructed asset knowledge base is rich and available, and the data quality of the asset knowledge base is improved.
Owner:HANGZHOU ALIBABA INT INTERNET IND CO LTD

Large language model Text2SQL single-table query statement generation method

The invention discloses a large language model Text2SQL (Structured Query Language) single-table query statement generation method, which belongs to the technical field of data processing, and comprises the following steps of: 1, inputting a user query problem and partial information of a query form into a large language model, and obtaining an original SQL statement by using an SQL pre-generation method; step 2, correcting and integrating keyword fields in the original SQL statement by using an SQL keyword field correction and integration method to obtain integrated keyword fields; and step 3, correcting the logic relationship in the original SQL statement according to the integrated keyword field by using a complete SQL statement fusion generation method, and fusing the corrected logic relationship, the integrated keyword field and the query object in the original SQL statement to generate a new SQL statement. Compared with the prior art, on the premise that fine adjustment is not carried out, the query function of any single table can be achieved, the performability and accuracy of SQL statements are improved, meanwhile, the table structure is not disclosed for a user, and the privacy of a database is protected.
Owner:NANJING UNIV OF POSTS & TELECOMM

Method for generating steel field TEXT2SQL based on LLM enhanced by RAG

The invention relates to a method for generating steel field TEXT2SQL based on LLM enhanced by RAG, which comprises the following steps: firstly, establishing connection with a steel database, and defining user semantic information and a database mode; then, obtaining user input and carrying out natural language processing; thirdly, guiding a large language model to generate a more accurate SQL query by utilizing the generated group of guiding words prompt; then, natural language query is converted into SQL query in combination with a large language model and an RAG technology; when a new user query is received, searching a historical query most similar to the new user query and a corresponding SQL query from the vector database; and finally, performing grammar correctness and logic rationality verification on the generated SQL statement, and outputting the SQL statement. According to the method, the problem that table names and field names are difficult to obtain when a large language model generates accurate SQL statements according to user description is solved. According to the method, the high-quality SQL query statement can be effectively generated, and the accuracy and the use efficiency of steel database query are improved.
Owner:DONGHUA UNIV

Method and device for adaptively generating structural query statements in natural language

The invention discloses a method and a device for adaptively generating a structural query statement by using a natural language. The method comprises the following steps: acquiring a natural language query statement input by a user; vectorizing the natural language query statement to obtain a first query statement and a data table and an SQL statement corresponding to the first query statement; rewriting the natural language query statement to obtain a second query statement; recalling a candidate data table and a candidate table field based on the second query statement and a preset to-be-queried data table; the first input data and the first sample data are input into the preset large language model, the query statement and the reasoning chain are structured, the natural language query statement input by the user is corrected, the difference between the natural language query statement and the database table structure is reduced, and the accuracy of data table recall is improved; by recalling the candidate data table, the reasoning difficulty is reduced, so that the accuracy of generating the structured query statement according to the natural language query statement is improved.
Owner:YEEXUN INC

Database question and answer method, system and equipment based on large language model and medium

The invention provides a database question-answering method, system and device based on a large language model and a medium, and belongs to the technical field of database access. According to the scheme, user questions are rewritten through a preset strategy, SQL statements corresponding to the user questions are generated on the basis of the rewritten user questions in combination with the large language model, and the SQL statements are used for questioning and answering the user questions. The accuracy and the flexibility of SQL statement generation are effectively ensured; meanwhile, according to the scheme, based on a man-machine interaction strategy, user interaction information is introduced in the SQL statement generation process, a user configures a data table and a field related to the current application scene, on one hand, the question and answer processing efficiency can be improved, and on the other hand, the question requirements in different scenes can be effectively met.
Owner:金现代信息产业股份有限公司

Context learning-based database query generation method and system and storage medium

The invention discloses a context learning-based database query generation method and system and a storage medium, and the method comprises the steps: extracting keywords and phrases from a natural language query, retrieving values similar to the keywords in a database, and returning values most related to the keywords and corresponding columns thereof, retrieving description information related to the keywords and the phrases in a database directory; performing mode selection aiming at the most relevant value of each keyword and the corresponding column, namely screening out the column irrelevant to the natural language query, further selecting a table necessary for generating the SQL query, and finally reducing the mode to a minimum column set necessary for generating the SQL query; and correcting logic and grammar errors of the method model through the database mode, the natural language query, the generated candidate SQL query and the execution result thereof. According to the method, the efficient SQL query statement is generated by intelligently understanding the data context and the query requirement.
Owner:GUANGDONG POWER GRID CO LTD +1

Intelligent AI question and answer method and device based on domain knowledge graph and table paraphrasing enhancement generation and program product

The invention provides an intelligent AI question answering method based on domain knowledge graph and table paraphrasing enhancement generation, which comprises the following steps: constructing a domain knowledge graph, and performing paraphrasing enhancement on a domain database table to obtain a table paraphrasing enhancement knowledge base; receiving a user question, and analyzing a keyword of the user question through a natural language processing technology; performing intention understanding analysis on the keyword based on a domain knowledge graph to obtain a knowledge graph retrieval result, the knowledge graph retrieval result at least comprising N pieces of similar path information matched with a user question in the knowledge graph; searching M reference tables in a table paraphrasing enhancement knowledge base based on the N pieces of similar path information; and generating an SQL query statement according to the N pieces of similar path information and the M reference tables by utilizing a language large model, and querying in a database based on the SQL query statement to obtain an answer to the user question.
Owner:NEWCAPEC ELECTRONICS CO LTD

Real-time feature store in a database system

Provided herein are systems and methods for real-time feature store configuration. The method includes decoding raw data received from a data source to obtain decoded raw data. The decoded raw data includes streaming data and batch data. An incremental computation of features associated with the decoded raw data is performed using at least one dynamic table object. The features are pushed to a feature store using at least one triggered task. Optionally, training of a machine learning model is performed using the features in the feature store.
Owner:SNOWFLAKE INC

Database performance optimization method and device

The embodiment of the invention provides a database performance optimization method and device, relates to the field of big data and can also be applied to the financial field, and the method comprises the steps that hardware resource configuration information of a database server is acquired, and whether hardware resources meet current service requirements or not is determined; positioning a data query statement exceeding a preset time threshold based on the slow query; optimizing the data query statement under the condition that the positioned data query statement has the problem of long execution time or waiting time; according to the method, the response speed and the processing efficiency of the database can be remarkably improved through the measures of optimizing the index, adjusting the query statement, improving the table structure design, finely regulating and controlling the server parameters and the like, so that the operation efficiency of the system and the user experience are directly improved. In addition, the method can help enterprises to save cost and enhance the expandability and maintainability of the database.
Owner:INDUSTRIAL AND COMMERCIAL BANK OF CHINA

Heterogeneous data conversion method and system based on multi-modal large model

The invention discloses a heterogeneous data conversion method and system based on a multi-modal large model, and aims to solve the problems of single-modal limitation, high migration cost and the like in traditional heterogeneous data processing. The method comprises the following steps: firstly, carrying out format adaptation and classification preprocessing on multi-source heterogeneous data such as images, texts, audios and videos; then, through a ViT, BERT and Transform cross attention mechanism, deep analysis and cross-modal semantic association of visual, text and audio features are realized, and visual-text-audio semantic mapping is established; and based on a dynamic prompt project, guiding the multi-modal large model to generate structured data according to a preset Schema zero sample. And then error correction and format normalization are carried out through a Drools rule engine to ensure that the data meet the business standard. And finally, supporting multi-format output of JSON / XML / database table and the like, and meanwhile, associating original data storage to realize data traceability. According to the method, the limitation of single-modal processing is broken through, and cross-modal data deep association is realized.
Owner:浙江微特电子信息有限公司

Self-adaptive SQL (Structured Query Language) differential privacy noise adding method

The invention discloses a self-adaptive SQL differential privacy noise adding method, and relates to the technical field of data protection. In order to accurately calculate and add noise of a proper magnitude in a complex SQL statement, the adopted scheme comprises the following steps: regularly collecting and updating metadata of a database, analyzing attribute features of a data table, and forming a data attribute feature library and a corresponding data sensitivity library; the SQL query request is rewritten into an abstract syntax tree and traversed, and an aggregation function, multi-table connection and a sub-query structure are recorded; key semantic information contained in the request is bound with the data sensitivity library, the sensitivity of the request is calculated, and a privacy budget is distributed in a self-adaptive mode; the privacy budget allowance is checked, when the allowance is sufficient, a data disturbance mechanism meeting-differential privacy is used for disturbing the query result, a disturbed result is obtained, and otherwise, the request is rejected. The method is used for accurately calculating the dynamic allocation privacy budget according to the characteristics of the complex SQL query.
Owner:INSPUR SOFTWARE TECH CO LTD

Query statement conversion method and device based on large model, equipment and medium

The invention discloses a query statement conversion method and device based on a large model, equipment and a medium, and relates to the field of computer science, and the method comprises the steps: obtaining a natural language query statement sent by a user side, comparing the natural language query statement with a high-frequency problem in a target knowledge base, and obtaining a query statement conversion result; whether a high-frequency problem with the similarity with the natural language query statement exceeding a preset similarity threshold value exists in the target knowledge base or not is judged; if the high-frequency problem that the similarity with the natural language query statement exceeds a preset similarity threshold does not exist, determining a target database table corresponding to the natural language query statement based on the target knowledge graph, and extracting a creation statement corresponding to the target database table, so as to determine target information corresponding to the target database table according to the creation statement; and analyzing the target information by using a preset large model to generate an SQL statement corresponding to the natural language query statement. According to the method and the device, the natural language query statement can be efficiently and accurately converted into the structured SQL statement.
Owner:SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD

Method and system for retrieving information from table corpora using large language models

A method for extracting and displaying desired information from a set of tables includes storing a set of tables including information associated with a subsurface of the Earth; receiving a user query; selecting a table from the set of tables based on an embedding search performed for the user query, on a vector database of table-column questions of the set of tables; selecting one or more columns from the table based on a likelihood estimation performed in an embedding space, between (1) the user query and (2) a table summary and descriptions of columns for the selected table; determining one or more rows associated with the one or more columns; and displaying one or more answers in response to the user query.
Owner:CGG SERVICES SAS

Method for correcting nonstandard SQL (Structured Query Language) statement based on large language model

The invention particularly relates to a method for correcting nonstandard SQL statements based on a large language model. According to the method for correcting the irregular SQL statement based on the large language model, an SQL table establishment statement, an Insert insertion statement, a natural language problem and a corresponding SQL query statement are transmitted into a system; executing the SQL table establishment statement, and if the line fails, entering a correction mode until the execution is successful; continuing to execute the Insert insertion statement, and if the line fails, entering a correction mode until the execution is successful; and executing an SQL query statement input by the user or generated by the large language model, and if the line fails, entering an error processing mode until execution succeeds. According to the method for correcting the irregular SQL statements based on the large language model, automatic correction and generation of the wrong SQL statements are achieved, operation of a user is simplified, the accuracy and efficiency of data processing are improved, the difficulty of database related operation under the business background is reduced, and the user experience is improved. And powerful support is provided for data processing and analysis in a business scene.
Owner:SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD