相关疑难解决方法(0)

在PostgreSQL中插入多个ENUM值

是否可以ENUM在postgres中的列中插入多个值?

例如,在Mysql中,我可以做到.

create table 'foo'(
    'foo_id' smallint(5) unsigned NOT NULL AUTO_INCREMENT,
    `foo_enum` enum('foo','bar','dummy') DEFAULT 'foo',
);

insert into 'foo' ('foo_id', 'foo_enum') values (1, 'foo, bar')
Run Code Online (Sandbox Code Playgroud)

postgresql enums insert

4
推荐指数
1
解决办法
5487
查看次数

标签 统计

enums ×1

insert ×1

postgresql ×1