The invention is suitable for the technical field of
data query, and provides an index query method and device,
electronic equipment and a storage medium, and the index query method comprises the following steps: obtaining a first type of
query language statement input by a user; performing grammar analysis on the first type of
query language statement based on a predefined grammar rule to generate a corresponding analysis tree; traversing the analytic tree, identifying a query target in the first type of
query language statement, and constructing a query semantic
object based on the query target, the query target including one or more of an index and a physical table; and according to the query semantic object, generating a second type of query language statement corresponding to the first type of query language statement for an underlying
data system to perform index query. According to the scheme, by introducing the query semantic object and supporting mixed recognition and
processing of the index and the physical table, the problems that in an existing query mode, flexibility is insufficient, dynamic parameters cannot be expressed, and multi-source joint query cannot be supported are solved.