title: Get Table names and Query types from sql statement in JAVA
body: <p>I am new to jsqlparser and trying to parse the sql statement to get table name and its query type (In Java).<br></p>
  
  <p>For eg1.<br>
  <code>    INSERT INTO Customers (CustomerName, Country)
       SELECT SupplierName, Country FROM Suppliers
       WHERE Country='Germany'</code><br>
  From this query, I want to get the table name <code>Suppliers</code> and its query type <code>SELECT</code>.<br>
  Similarly, table name <code>Suppliers</code> and its query type<code>INSERT</code>.<br></p>
  
  <p>For eg2.<br>
  <code>    UPDATE CUSTOMERS SET SALARY = SALARY * 0.25
       WHERE AGE IN (SELECT AGE FROM CUSTOMERS_BKP WHERE AGE >= 27 )</code><br>
  From this query, I want to get the table name <code>CUSTOMERS_BKP</code> and its query type <code>SELECT</code>.<br>
  Similarly, table name <code>CUSTOMERS</code> and its query type<code>UPDATE</code>.<br></p>
  
  <p>For eg3.<br>
  <code>    UPDATE CUSTOMERS SET SALARY = SALARY * 0.25
  WHERE AGE IN (SELECT AGE FROM CUSTOMERS WHERE AGE >= 27 )</code><br>
  (I knew that this query can be simplified, but for example I have pasted here.)<br>
  From this query, I want to get the table name <code>CUSTOMERS</code> and its query type <code>SELECT</code>.<br>
  Similarly, table name <code>CUSTOMERS</code> and its query type<code>UPDATE</code>.<br><b>Note: here table names are same but different query type.</b></p>
  
  <p>Same way, I want to get the table name and its query type for any complex sql query.<br><br>
  Could you please help me on this?<br><br>
  Please comment, if you want me to provide any details.</p>