Updated Druid_SQL_AST (markdown)

高铁
2017-10-03 14:46:30 -05:00
parent 46a0fc5066
commit 775d29f3dd
+20
@@ -114,6 +114,26 @@ class SQLWithSubqueryClause {
}
```
## 2.4
```java
interface SQLSelectQuery extends SQLObject {}
class SQLSelectQueryBlock implements SQLSelectQuery {
List<SQLSelectItem> selectList;
SQLTableSource from;
SQLExprTableSource into;
SQLExpr where;
SQLSelectGroupByClause groupBy;
SQLOrderBy orderBy;
SQLLimit limit;
}
class SQLUnionQuery implements SQLSelectQuery {
SQLSelectQuery left;
SQLSelectQuery right;
SQLUnionOperator operator; // UNION/UNION_ALL/MINUS/INTERSECT
}
```
# 3. 怎样产生AST