The invention provides a report query method and device, equipment, a storage medium and a program product, relates to the technical field of
data processing, and can reduce the error rate of manually configuring
SQL query statements and improve the query efficiency. According to the specific technical scheme, when a user inputs a query request, a
system firstly understands the intention of the user and generates a corresponding
SQL statement; secondly, a preliminary query scheme is formulated according to the actual situation of the
database, index scanning or full-table scanning is determined, and an
SQL statement structure is optimized; and then predicting the calculation complexity, the data scanning amount and the parallel feasibility of the query, and finally determining and executing a query
execution plan in combination with the load condition of the current
database. In the execution process, the
database load can be checked in real time, and the execution strategy is dynamically adjusted. Finally, a visual report is generated according to a query result, and chart display and export functions are supported.