我是PostgreSQL的新手。我想在Postgres中将我的一个列数据类型从bytea[]更改为bytea。我尝试了下面的查询,但它给出了错误cannot cast type bytea[] to byteaALTER COLUMN COLUMN_NAME TYPEbytea USING COLUMN_NAME::bytea;
有人知道怎么做吗?
我想使用concat函数或||操作符将文本数据插入到Postgres bytea列中。我收到一个错误 column "name" is of type bytea but expression is of type text create table test(insert into test(name) values('aa
我有这三个型号 Id int `gorm: "type:int;primary_key;AUTO_INCREMENT;NOT NULL;UNIQUE"`gorm: "type:int;primary_key;AUTO_INCREMENT;NOT NULL;UNIQUE"` Id int `gorm: "