Alias Table Engine
The Alias table engine is a reference to another table.
Usage in ClickHouse Server
- The
database_nameandtable_nameparameters specify the database and the name of the referenced table. - The
UUIDparameter specifies the UUID of the referenced table.
The table schema definition is prohibited for Alias table as it should always be the same as the reference table.
Example
1. Create ref_table table and alias_table table as a alias of ref_table:
2. Insert data into ref_table or alias_table:
3. Query the data:
Details of Implementation
Operations on Alias storage will be directed to its reference table.