就像其他类型一样,一旦创建,枚举类型可以用于表和函数定义。 CREATE TYPE mood AS ENUM ('sad', 'ok', 'happy'); CREATE TABLE person ( name text, current_mood mood ); ...
確定! 回上一頁