EmmyMiao87 commented on a change in pull request #1558: Modify load docs
URL: https://github.com/apache/incubator-doris/pull/1558#discussion_r307965409
##########
File path:
docs/documentation/cn/administrator-guide/load-data/insert-into-manual.md
##########
@@ -1,98 +1,104 @@
-# Insert into
+# Insert Into
-Insert into 主要用来将某几行数据插入某张表,或者将已经存在在 Doris 系统中的部分数据导入到目标表中。
+Insert Into 语句的使用方式和 MySQL 等数据库中 Insert Into 语句的使用方式类似。但在 Doris
中,所有的数据写入都是一个独立的导入作业。所以这里将 Insert Into 也作为一种导入方式介绍。
-目前所有的 Insert into 导入实现均为同步执行。但是为了兼容旧的 Insert into 导入,不指定 STREAMING 的 Insert
into 同步执行完后,依然可以通过查看导入命令查看导入状态和结果。
+主要的 Insert Into 命令包含以下两种;
-# 基本操作
-## 创建导入
+* INSERT INTO tbl SELECT ...
+* INSERT INTO tbl (col1, col2, ...) VALUES (1, 2, ...), (1,3, ...);
-Insert into 创建导入请求需要通过 Mysql 协议提交,创建导入请求会同步返回导入结果。
+其中第二种命令仅用于 Demo,不要使用在测试或生产环境中。
-Insert info 创建导入语句
+## 基本操作
+
+### 创建导入
+
+Insert Into 命令需要通过 MySQL 协议提交,创建导入请求会同步返回导入结果。
+
+Insert Into 创建导入语句
-```
语法:
-INSERT INTO table_name [partition_info] [col_list] [plan_hints] [query_stmt]
[VALUES]
-示例:
-insert into char_4_new values ("qweasdzxcqweasdzxc"), ("a");
-insert into char_4_new select * from char_3_new;
+```
+Insert Into INTO table_name [partition_info] [col_list] [query_stmt] [VALUES];
Review comment:
INTO是不是写重复了。。。
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]