CHSQL-based sql statement generation method and apparatus, and electronic device

The embodiment of the invention provides an sql statement generation method and device based on CHSQL and electronic equipment. The method comprises the following steps: acquiring an alarm expression statement input by a user; analyzing the alarm expression statement to obtain a target data object;...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: HUANG QUANXIN, SU ZEFENG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The embodiment of the invention provides an sql statement generation method and device based on CHSQL and electronic equipment. The method comprises the following steps: acquiring an alarm expression statement input by a user; analyzing the alarm expression statement to obtain a target data object; determining an alarm time range according to the target data object; performing conversion processing on the target data object to obtain a data field corresponding to the target data object; and according to the alarm time range and the data field, generating an sql statement, corresponding to the alarm expression statement, of the CHSQL. According to the embodiment of the invention, the purpose of automatically converting the natural language into the sql statement of the CHSQL can be realized, so that a user can be separated from tedious sql language familiar writing, the learning cost is reduced, and the platform openness and availability are improved. 本申请实施例提供了一种基于CHSQL的sql语句生成方法、装置及电子设备。所述方法包括:获取用户输入的告警表达式语句;