title: SQL parser library for Java
body: <p>Is there an open-source Java library for parsing SQL statements?</p>
  
  <p>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).</p>
  
  <p>If not, strict adherence to the SQL standard is also fine.</p>
  
  <p><strong>Update:</strong> I need this for two things: </p>
  
  <ul>
  <li>providing an SQL interface to a non-SQL database (mapping to internal API calls)</li>
  <li>rewriting SQL before it goes to the actual database (e.g. Oracle)</li>
  </ul>