SQL (Structural Query Language) language resolving method and SQL language resolving device

The invention provides an SQL language resolving method which comprises the following steps: acquiring an SQL command input by a user; judging an expression mode of the SQL command; resolving an expression part in the SQL command in a bottom-up mode; resolving a modification part in the SQL command in a top-down mode; acquiring an abstract syntax tree of the SQL command by virtue of combination of resolving of two parts. The invention also provides a corresponding device. According to the method, high-efficiency resolving modes are respectively adopted for different expression modes in the SQL command, and the two resolving methods are combined to efficiently finish SQL command resolving.