未验证 提交 35608a1f 编写于 作者: O olgarev 提交者: GitHub

Apply suggestions from code review

Co-authored-by: Ntavplubix <tavplubix@gmail.com>
上级 e36cffe3
......@@ -60,9 +60,8 @@ SELECT * FROM file('test.csv', 'CSV', 'column1 UInt32, column2 UInt32, column3 U
Inserting data from a file into a table:
``` sql
CREATE TABLE file_engine_table (column1 UInt32, column2 UInt32, column3 UInt32) ENGINE=File(CSV);
INSERT INTO file_engine_table FROM file('test.csv', 'CSV', 'column1 UInt32, column2 UInt32, column3 UInt32');
SELECT * FROM file_engine_table;
INSERT INTO FUNCTION file('test.csv', 'CSV', 'column1 UInt32, column2 UInt32, column3 UInt32') VALUES (1, 2, 3), (3, 2, 1);
SELECT * FROM file('test.csv', 'CSV', 'column1 UInt32, column2 UInt32, column3 UInt32');
```
``` text
......
......@@ -101,9 +101,9 @@ SELECT * FROM remote('127.0.0.1', db.remote_engine_table) LIMIT 3;
Inserting data from a remote server into a table:
``` sql
CREATE TABLE remote_engine_table (name String, value UInt32) ENGINE=Distributed(cluster, default, hits);
INSERT INTO remote_engine_table FROM remote('127.0.0.1', db.remote_engine_table);
SELECT * FROM remote_engine_table;
CREATE TABLE remote_table (name String, value UInt32) ENGINE=Memory;
INSERT INTO FUNCTION remote('127.0.0.1', currentDatabase(), 'remote_table') VALUES ('test', 42);
SELECT * FROM remote_table;
```
[Original article](https://clickhouse.tech/docs/en/sql-reference/table-functions/remote/) <!--hide-->
......@@ -36,9 +36,9 @@ SELECT * FROM url('http://127.0.0.1:12345/', CSV, 'column1 String, column2 UInt3
Inserting data from a URL into a table:
``` sql
CREATE TABLE url_engine_table (column1 String, column2 UInt32) ENGINE=URL('http://127.0.0.1:12345/', CSV);
INSERT INTO url_engine_table FROM url('http://127.0.0.1:12345/', 'CSV', 'column1 String, column2 UInt32');
SELECT * FROM url_engine_table;
CREATE TABLE test_table (column1 String, column2 UInt32) ENGINE=Memory;
INSERT INTO FUNCTION url('http://127.0.0.1:8123/?query=INSERT+INTO+test_table+FORMAT+CSV', 'CSV', 'column1 String, column2 UInt32') VALUES ('http interface', 42);
SELECT * FROM test_table;
```
[Original article](https://clickhouse.tech/docs/en/sql-reference/table-functions/url/) <!--hide-->
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册