小编src*_*nda的帖子

PostgreSQL - ALTER列数据类型,从整数到整数数组

请帮助修改整数类型到整数数组的列:

我创建了一个包含content_id整数类型列的表.然后我尝试更改显示错误content_id(integer),integer[](integer array)但显示错误:

TestDatabase=# ALTER TABLE tbl_handset_content ALTER COLUMN content_id TYPE integer[];
ERROR:  column "content_id" cannot be cast to type "pg_catalog.int4[]"
Run Code Online (Sandbox Code Playgroud)

问候,

Sravan

postgresql type-conversion

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

标签 统计

postgresql ×1

type-conversion ×1