2020-04-08 14:22:25 +00:00
|
|
|
---
|
|
|
|
machine_translated: true
|
2020-05-15 04:34:54 +00:00
|
|
|
machine_translated_rev: 72537a2d527c63c07aa5d2361a8829f3895cf2bd
|
2020-04-08 14:22:25 +00:00
|
|
|
toc_folder_title: "\u8868\u51FD\u6570"
|
|
|
|
toc_priority: 34
|
|
|
|
toc_title: "\u5BFC\u8A00"
|
|
|
|
---
|
|
|
|
|
|
|
|
# 表函数 {#table-functions}
|
|
|
|
|
|
|
|
表函数是构造表的方法。
|
|
|
|
|
|
|
|
您可以使用表函数:
|
|
|
|
|
2020-05-15 04:34:54 +00:00
|
|
|
- [FROM](../statements/select/from.md) 《公约》条款 `SELECT` 查询。
|
2020-04-08 14:22:25 +00:00
|
|
|
|
|
|
|
The method for creating a temporary table that is available only in the current query. The table is deleted when the query finishes.
|
|
|
|
|
2020-10-13 17:23:29 +00:00
|
|
|
- [创建表为\<table_function()\>](../statements/create.md#create-table-query) 查询。
|
2020-04-08 14:22:25 +00:00
|
|
|
|
|
|
|
It's one of the methods of creating a table.
|
|
|
|
|
|
|
|
!!! warning "警告"
|
2020-10-13 17:23:29 +00:00
|
|
|
你不能使用表函数,如果 [allow_ddl](../../operations/settings/permissions-for-queries.md#settings_allow_ddl) 设置被禁用。
|
2020-04-08 14:22:25 +00:00
|
|
|
|
|
|
|
| 功能 | 产品描述 |
|
|
|
|
|--------------------|--------------------------------------------------------------------------------------------------------|
|
2020-04-30 18:19:18 +00:00
|
|
|
| [文件](file.md) | 创建一个 [文件](../../engines/table-engines/special/file.md)-发动机表。 |
|
|
|
|
| [合并](merge.md) | 创建一个 [合并](../../engines/table-engines/special/merge.md)-发动机表。 |
|
2020-04-08 14:22:25 +00:00
|
|
|
| [数字](numbers.md) | 创建一个包含整数填充的单列的表。 |
|
2020-04-30 18:19:18 +00:00
|
|
|
| [远程](remote.md) | 允许您访问远程服务器,而无需创建 [分布](../../engines/table-engines/special/distributed.md)-发动机表。 |
|
|
|
|
| [url](url.md) | 创建一个 [Url](../../engines/table-engines/special/url.md)-发动机表。 |
|
|
|
|
| [mysql](mysql.md) | 创建一个 [MySQL](../../engines/table-engines/integrations/mysql.md)-发动机表。 |
|
|
|
|
| [jdbc](jdbc.md) | 创建一个 [JDBC](../../engines/table-engines/integrations/jdbc.md)-发动机表。 |
|
|
|
|
| [odbc](odbc.md) | 创建一个 [ODBC](../../engines/table-engines/integrations/odbc.md)-发动机表。 |
|
|
|
|
| [hdfs](hdfs.md) | 创建一个 [HDFS](../../engines/table-engines/integrations/hdfs.md)-发动机表。 |
|
2020-04-08 14:22:25 +00:00
|
|
|
|
|
|
|
[原始文章](https://clickhouse.tech/docs/en/query_language/table_functions/) <!--hide-->
|