未验证 提交 1fe0a270 编写于 作者: I Ivan Blinkov 提交者: GitHub

grammar

上级 b24019ed
# Domains {#domains}
Domains are special-purpose types, that add some extra features atop of existing base type, leaving on-wire and on-disc format of underlying table intact. At the moment, ClickHouse does not support user-defined domains.
Domains are special-purpose types that add some extra features atop of existing base type, but leaving on-wire and on-disc format of the underlying data type intact. At the moment, ClickHouse does not support user-defined domains.
You can use domains anywhere corresponding base type can be used:
You can use domains anywhere corresponding base type can be used, for example:
- Create a column of domain type
- Create a column of a domain type
- Read/write values from/to domain column
- Use it as index if base type can be used as index
- Use it as an index if a base type can be used as an index
- Call functions with values of domain column
- etc.
### Extra Features of Domains {#extra-features-of-domains}
- Explicit column type name in `SHOW CREATE TABLE` or `DESCRIBE TABLE`
- Input from human-friendly format with `INSERT INTO domain_table(domain_column) VALUES(...)`
- Output to human-friendly format for `SELECT domain_column FROM domain_table`
- Loading data from external source in human-friendly format: `INSERT INTO domain_table FORMAT CSV ...`
- Loading data from an external source in the human-friendly format: `INSERT INTO domain_table FORMAT CSV ...`
### Limitations {#limitations}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册