Kli*_*mbo 0 postgresql go pgx
我使用 Go 和 Postgres (带有pgx 驱动程序)
在我的 Postgres 表中,我有一个包含整数数组的字段。我创建了一个变量来存储扫描后的整数数组。
var ids pgtype.Int4Array
如何转换ids为[]int64?
ids
[]int64
Cer*_*món 6
使用ids.AssignTo(&sliceOfInt64)
ids.AssignTo(&sliceOfInt64)
归档时间:
6 年,5 月 前
查看次数:
2567 次
最近记录: