The following content of this documentation page has been machine-translated. But unlike other websites, it is not done on the fly. This translated text lives on GitHub repository alongside main ClickHouse codebase and waits for fellow native speakers to make it more human-readable.

    Help ClickHouse documentation by editing this page

    分层字典

    看看下面的层次结构:

    这种层次结构可以表示为下面的字典表。

    ClickHouse支持 等级 属性为 属性。 此属性允许您配置类似于上述的分层字典。

    独裁主义 函数允许您获取元素的父链。

    1. <dictionary>
    2. <structure>
    3. <id>
    4. <name>region_id</name>
    5. </id>
    6. <name>parent_region</name>
    7. <type>UInt64</type>
    8. <null_value>0</null_value>
    9. <hierarchical>true</hierarchical>
    10. </attribute>
    11. <name>region_name</name>
    12. <type>String</type>
    13. <null_value></null_value>
    14. </attribute>
    15. </structure>