I'm using JsqlParser 0.8.0
.
I have the following string:
String sql = "SELECT table alias FROM table;";
CCJSqlParserManager pm = new CCJSqlParserManager();
Select s = (Select) pm.parse(new StringReader(sql));
System.out.println(s.getSelectBody());
I expected the table AS alias
to be printed, but the whole sql
-query was printed instead. How can I make printing only the SelectBody
.