Abstract:he basic concept and recursive query algorithms in DeDB are introduced.And an efficient recursive query algorithm, GCQA, has been proposed, which combines the bottom-up with the top -down and includes two parts: one is pre-compiling algorithm; the other is recursive compiling algorithm. The experimental result has shown that the algorithm is very effective.