ClickHouse/docs/zh/query_language/table_functions/index.md

35 lines
2.4 KiB
Markdown
Raw Normal View History

2020-04-03 13:23:32 +00:00
---
en_copy: true
---
# Table Functions {#table-functions}
Table functions are methods for constructing tables.
You can use table functions in:
- [FROM](../select.md#select-from) clause of the `SELECT` query.
The method for creating a temporary table that is available only in the current query. The table is deleted when the query finishes.
- [CREATE TABLE AS \<table\_function()\>](../create.md#create-table-query) query.
It's one of the methods of creating a table.
!!! warning "Warning"
You cant use table functions if the [allow\_ddl](../../operations/settings/permissions_for_queries.md#settings_allow_ddl) setting is disabled.
| Function | Description |
|-----------------------|-----------------------------------------------------------------------------------------------------------------------------------|
| [file](file.md) | Creates a [File](../../operations/table_engines/file.md)-engine table. |
| [merge](merge.md) | Creates a [Merge](../../operations/table_engines/merge.md)-engine table. |
| [numbers](numbers.md) | Creates a table with a single column filled with integer numbers. |
| [remote](remote.md) | Allows you to access remote servers without creating a [Distributed](../../operations/table_engines/distributed.md)-engine table. |
| [url](url.md) | Creates a [Url](../../operations/table_engines/url.md)-engine table. |
| [mysql](mysql.md) | Creates a [MySQL](../../operations/table_engines/mysql.md)-engine table. |
| [jdbc](jdbc.md) | Creates a [JDBC](../../operations/table_engines/jdbc.md)-engine table. |
| [odbc](odbc.md) | Creates a [ODBC](../../operations/table_engines/odbc.md)-engine table. |
| [hdfs](hdfs.md) | Creates a [HDFS](../../operations/table_engines/hdfs.md)-engine table. |
[Original article](https://clickhouse.tech/docs/en/query_language/table_functions/) <!--hide-->