SQL query parser
- From: Boris Stumm <stumm@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 30 Nov 2007 16:41:59 +0100
Hello all,
I am currently looking for an SQL parser written in Java, preferably
with source code. What I want to do is to infer (as far as possible)
the schema from an SQL DML statement. The parser should give me some
nice, traversable Java object tree/abstract syntax tree.
So far I only found sql4j and Zql, which both are very old and do not
parse my statements.
Anyone can give me some pointers? Here is a list of things that the
parser should be able to parse:
* CASE statements in the SELECT as well as in the WHERE clause
* subselects, exists, not exists, ...
* column and table aliasing
* grouping and aggregate functions
Thanks for your help,
Boris Stumm
.
- Follow-Ups:
- Re: SQL query parser
- From: Dyreatnews
- Re: SQL query parser
- Prev by Date: Re: Class design for DB code
- Next by Date: Re: SQL query parser
- Previous by thread: Re: Class design for DB code
- Next by thread: Re: SQL query parser
- Index(es):
Relevant Pages
|
|