Perhaps you can use Antlr, it has a number of SQL grammars and a Java library, as well as plugins for various Java IDEs.
Or as advised, use the parser of open source SQL utilities like SQuirreL SQL Client.
More Related Contents:
- String variable in java to get and store the json array in table column
- How to get the insert ID in JDBC?
- java.util.Date vs java.sql.Date
- How can I get the SQL of a PreparedStatement?
- SQL parser library for Java [closed]
- Java: Syntax and meaning behind “[B@1ef9157”? Binary/Address?
- How to call a stored procedure from Java and JPA
- “EEE MMM dd HH:mm:ss ZZZ yyyy” date format to java.sql.Date
- Prevent SQL injection attacks in a Java program
- Java Date – Insert into database
- Hibernate Union alternatives
- JDBC Pagination
- org.postgresql.util.PSQLException: FATAL: sorry, too many clients already
- Queries returning multiple result sets
- SQL prepared statement how to select via multiple possible menu selections?
- Class.forName(JDBC_DRIVER) no longer needed?
- Is there any good dynamic SQL builder library in Java? [closed]
- Can I access new methods in anonymous inner class with some syntax?
- How can I detect a SQL table’s existence in Java?
- Having a Column name as Input Parameter of a PreparedStatement
- Java – Storing SQL statements in an external file [closed]
- Can I have H2 autocreate a schema in an in-memory database?
- In Java, how do I access the outer class when I’m not in the inner class?
- Creating the instance of abstract class or anonymous class
- MS SQL Exception: Incorrect syntax near ‘@P0’
- Exporting SQL query result to csv or Excel
- Get column name of property mapped with Hibernate
- Database independence through JDBC in java
- How to escape colon `:` within a native SQL query in Hibernate?
- What do < and > mean such as implements Comparable?