Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2dot5
ClickHouse
提交
35608a1f
C
ClickHouse
项目概览
2dot5
/
ClickHouse
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
ClickHouse
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
35608a1f
编写于
1月 22, 2021
作者:
O
olgarev
提交者:
GitHub
1月 22, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Apply suggestions from code review
Co-authored-by:
N
tavplubix
<
tavplubix@gmail.com
>
上级
e36cffe3
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
9 deletion
+8
-9
docs/en/sql-reference/table-functions/file.md
docs/en/sql-reference/table-functions/file.md
+2
-3
docs/en/sql-reference/table-functions/remote.md
docs/en/sql-reference/table-functions/remote.md
+3
-3
docs/en/sql-reference/table-functions/url.md
docs/en/sql-reference/table-functions/url.md
+3
-3
未找到文件。
docs/en/sql-reference/table-functions/file.md
浏览文件 @
35608a1f
...
...
@@ -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
...
...
docs/en/sql-reference/table-functions/remote.md
浏览文件 @
35608a1f
...
...
@@ -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-->
docs/en/sql-reference/table-functions/url.md
浏览文件 @
35608a1f
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录