A SQL statement template dynamic updating method, device, equipment and storage medium
By constructing a dynamic statement template sequence library using the longest common subsequence algorithm, the problems of low efficiency and poor stability in SQL statement clustering and deduplication in existing technologies are solved, and efficient and stable parsing and clustering deduplication of complex SQL statements are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHUI YOU INFORMATION TECH CO LTD
- Filing Date
- 2024-11-21
- Publication Date
- 2026-07-24
AI Technical Summary
Existing technologies struggle to efficiently and stably cluster and deduplicate SQL statements. Condition parameter traversal methods are incomplete and inefficient, while tree-structured recursive methods consume large amounts of memory and are prone to stack overflow.
A dynamic statement template sequence library is constructed using the longest common subsequence algorithm. SQL statement templates are identified and extracted by the longest common subsequence, and the template sequence is dynamically updated to adapt to complex SQL statements, thereby achieving efficient and stable clustering and deduplication.
It achieves simple, efficient and stable parsing of various SQL statements, adapts to constantly changing SQL data streams, and completes clustering and deduplication.
Smart Images

Figure CN119396850B_ABST