The invention discloses a
data query method and device based on a dynamic script, equipment and a storage medium. Comprising the steps of obtaining query related information; wherein the query related information comprises at least one of the following items: a group name, a script name, a version number, a tenant identifier and a query parameter; obtaining dynamic script data and a script object according to the group name, the script name, the version number and the tenant identifier; loading the dynamic script data into the script object; generating a structured
query language (
SQL) statement based on the script object loaded with the dynamic script data and the query parameter; and querying target data from a
data source corresponding to the tenant identifier based on the
SQL statement. According to the dynamic script-based
data query method provided by the embodiment of the invention, the
SQL statement is generated through the script object loaded with the dynamic script data and the query parameter, so that the query of the target data is realized, the SQL statement is dynamically generated, a user does not need to manually write the SQL statement, the
data query efficiency can be improved, and the query cost can be reduced.