Skip to content

Apache DataFusion SQL Query Engine

add the document (#1348)

Kun Liu790592611738
diff --git a/docs/source/user-guide/cli.md b/docs/source/user-guide/cli.md
index 049573f6d2..1d2d6b79d4 100644
--- a/docs/source/user-guide/cli.md
+++ b/docs/source/user-guide/cli.md
@@ -106,3 +106,15 @@ Available commands inside DataFusion CLI are:
```
> \quiet [true|false]
```
+
+- list function
+
+```bash
+> \h
+```
+
+- Search and describe function
+
+```bash
+> \h function_table
+```
diff --git a/docs/source/user-guide/sql/ddl.md b/docs/source/user-guide/sql/ddl.md
index b48179d4f2..eb10f40de5 100644
--- a/docs/source/user-guide/sql/ddl.md
+++ b/docs/source/user-guide/sql/ddl.md
@@ -54,3 +54,31 @@ STORED AS CSV
WITH HEADER ROW
LOCATION '/path/to/aggregate_test_100.csv';
```
+
+## CREATE MEMORY TABLE
+
+Memory table can be created with query.
+
+```
+CREATE TABLE TABLE_NAME AS [SELECT | VALUES LIST]
+```
+
+```sql
+CREATE TABLE valuetable AS VALUES(1,'HELLO'),(12,'DATAFUSION');
+
+CREATE TABLE memtable as select * from valuetable;
+```
+
+## DROP TABLE
+
+The table can be deleted.
+
+```
+DROP TABLE [ IF EXISTS ] name
+```
+
+```sql
+CREATE TABLE users AS VALUES(1,2),(2,3);
+
+DROP TABLE users;
+```