A data query method and device, electronic equipment and storage medium
By acquiring natural language recognition semantics and generating optimized prompts to optimize statements, the problem of low database query accuracy and high manual maintenance costs in existing technologies is solved. This achieves an automated and self-optimizing database query process, improving query accuracy and stability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CISDI INFORMATION TECH CO LTD
- Filing Date
- 2026-03-30
- Publication Date
- 2026-06-09
AI Technical Summary
In existing technologies, database query solutions rely on a single matching mechanism, resulting in low accuracy of table association matching, insufficient precision of SQL generation, low efficiency of query error retries, high manual maintenance costs, and difficulty in adapting to dynamic changes in database table structure and iterative business query requirements.
By acquiring natural language, identifying the semantics of the query and matching it with preset reference data, the target table structure and the query statement are generated. Query simulation is performed. If there are risks or the conditions are not met, optimization prompts are generated to optimize the statement and retry. The query process is optimized by using dynamic field weights and table structure knowledge graphs.
It significantly improves query accuracy, stability, and robustness, automatically optimizes the query process, reduces manual maintenance costs, adapts to changes in database structure, and enhances query performance.
Smart Images

Figure CN122173518A_ABST