From 85cbc16b8aab5be9def38451306c9a832bf4e446 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E9=93=81?= Date: Tue, 3 Oct 2017 23:51:59 -0500 Subject: [PATCH] Updated Druid_SQL_AST (markdown) --- Druid_SQL_AST.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Druid_SQL_AST.md b/Druid_SQL_AST.md index 73bdee4..8ced183 100644 --- a/Druid_SQL_AST.md +++ b/Druid_SQL_AST.md @@ -163,6 +163,21 @@ class SQLUnionQuery implements SQLSelectQuery { } ``` +## 2.5 SQLCreateTableStatement +```java +public class SQLCreateTableStatement extends SQLStatementImpl implements SQLDDLStatement, SQLCreateStatement { + SQLExprTableSource tableSource; + List tableElementList; + Select select; + + // 忽略大小写的查找SQLCreateTableStatement中的SQLColumnDefinition + public SQLColumnDefinition findColumn(String columName) {} + + // 忽略大小写的查找SQLCreateTableStatement中的column关联的索引 + public SQLTableElement findIndex(String columnName); +} +``` + # 3. 怎样产生AST ## 3.1. 通过SQLUtils产生List<SQLStatement>