Asked • 04/19/19

SQL parser library for Java?

Is there an open-source Java library for parsing SQL statements? If possible, it should be customizable or flexible enough to also be able to parse (or at least ignore) vendor-specific syntax (such as Oracle tablespace definitions or MySQL's LIMIT clause). If not, strict adherence to the SQL standard is also fine. **Update:** I need this for two things: - providing an SQL interface to a non-SQL database (mapping to internal API calls) - rewriting SQL before it goes to the actual database (e.g. Oracle)

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.