The invention discloses a
data query method, device and equipment and a storage medium, and relates to the technical field of
data processing.The method comprises the steps that a
data query instruction and a target query
database corresponding to a current
data query task are determined according to a data query request; detecting whether the data query instruction accords with a
database grammar specification corresponding to the target query
database; if not, performing grammar conversion on the data query instruction based on a preset grammar tree analysis mode to obtain a target data query instruction; and performing data query based on the target data query instruction. According to the method, when the data query instruction does not conform to the grammar specification of the
target database, grammar conversion can be performed on the data query instruction, and data query is performed based on the target data query instruction obtained after conversion; therefore, the technical problems that in the prior art, during cross-
database query, query scripts need to be frequently modified to adapt to grammar differences of different database engines, time is consumed, and errors are prone to occurring are solved.