You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tobias edited this page May 22, 2014
·
35 revisions
What is JSqlParser?
JSqlParser parses an SQL statement. Then the result can be accessed in a structured way.
The generated Java class hierarchy can be navigated using the Visitor Pattern.
#Modifications
This fork is continuously improved. All modifications could be followed at the
Release Notes.
Modifications before GitHubs release tagging are listed in the [Older Releases] page.
How it works?
The parser is built using JavaCC. The core JavaCC grammar for SQL has been taken from Guido Draheim's site and has been changed in order to produce a hierarchy of Java classes.
Over the time the grammar was extended and now is a combination of the grammars of various database systems. So some (not all) Oracle, MySql, SQLServer, PostgreSQL specific aspects can be parsed.
Maven
To use JSqlParser in a maven project you have to include the following dependency: