小编k s*_*mar的帖子

PostgreSQL列类型转换形式bigint到bigserial

当我尝试通过alter命令更改表中列的数据类型时...

alter table temp alter column id type bigserial;
Run Code Online (Sandbox Code Playgroud)

我明白了

ERROR:  type "bigserial" does not exist
Run Code Online (Sandbox Code Playgroud)

如何将数据类型从bigint更改为bigserial?

sql database postgresql persistence

20
推荐指数
2
解决办法
2万
查看次数

标签 统计

database ×1

persistence ×1

postgresql ×1

sql ×1