Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
因为 PostgreSQL 中没有set类型,所以我不得不使用domain. 我已经命名了一个域性别。它是文本类型。然后在 users 表中,我创建了一个具有该性别类型的列。现在,如何将性别存储在 users 表中?作为文本还是二进制?
set
domain
域类型始终基于一些基本的“内置”类型。此类型指定二进制格式。因此,如果您的域基于“文本”类型,那么您将数据存储为文本。