ClickHouse/docs/en/sql-reference/table-functions/merge.md
2021-11-01 10:39:25 +00:00

667 B

toc_priority toc_title
38 merge

merge

Creates a temporary Merge table. The table structure is taken from the first table encountered that matches the regular expression.

Syntax

merge('db_name', 'tables_regexp')

Arguments

  • db_name — Database name or a regular expression to match the DB names. You can use a constant expression that returns a string, for example, currentDatabase().

  • tables_regexp — A regular expression to match the table names in the specified DB or DBs.

See Also