The invention relates to the technical field of
database management, and provides a multi-compatible
database grammar intelligent
processing method, which comprises the following steps of: receiving an
SQL (Structured
Query Language) statement sent by a
client through a central grammar, performing grammar feature analysis on the received
SQL statement, and identifying a
target database grammar type to which the
SQL statement belongs; the central
syntax device queries a preset
syntax type-
processor mapping relation according to the recognized
target database syntax type, and distributes an SQL statement
route to a sub-syntax device corresponding to the
target database syntax type; the sub-syntax device analyzes the received SQL statement and converts the SQL statement into a standard
abstract syntax tree conforming to the internal specification of a
database kernel; an
execution plan is generated based on the standard
abstract syntax tree, the plan being executed by an execution engine of the database kernel to return a result. According to the method, kernel-level native compatibility can be realized, and the comprehensive cost of database migration and fusion is remarkably reduced.