--- toc_priority: 38 toc_title: merge --- # merge {#merge} `merge(db_name, 'tables_regexp')` – Creates a temporary Merge table. For more information, see the section “Table engines, Merge”. The table structure is taken from the first table encountered that matches the regular expression. [Original article](https://clickhouse.tech/docs/en/query_language/table_functions/merge/)