ClickHouse/docs/zh/operations/table_engines/set.md
2020-01-30 13:34:55 +03:00

13 lines
816 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Set
始终存在于 RAM 中的数据集。它适用于IN运算符的右侧请参见 "IN运算符" 部分)。
可以使用 INSERT 向表中插入数据。新元素将添加到数据集中,而重复项将被忽略。但是不能对此类型表执行 SELECT 语句。检索数据的唯一方法是在 IN 运算符的右半部分使用它。
数据始终存在于 RAM 中。对于 INSERT插入数据块也会写入磁盘上的表目录。启动服务器时此数据将加载到 RAM。也就是说重新启动后数据仍然存在。
对于强制服务器重启,磁盘上的数据块可能会丢失或损坏。在数据块损坏的情况下,可能需要手动删除包含损坏数据的文件。
[Original article](https://clickhouse.tech/docs/en/operations/table_engines/set/) <!--hide-->