Querying for Java SQL Parser Libraries
Question:
For Java applications, is there an open-source library capable of parsing SQL statements? The ideal library should be configurable or flexible enough to handle vendor-specific syntax or at least ignore it (e.g., Oracle tablespace definitions or MySQL's LIMIT clause). Strict adherence to the SQL standard is also acceptable if customization isn't an option.
Answer:
ANTLR3 (ANTLR version 3):
ANTLR4 (ANTLR version 4):
Additional Context:
The requested library serves two primary functions:
The above is the detailed content of Java SQL Parser Libraries: Open-Source Options for Parsing Vendor-Specific Syntax?. For more information, please follow other related articles on the PHP Chinese website!