当前位置:Gxlcms > 数据库问题 > go postgresql array

go postgresql array

时间:2021-07-01 10:21:17 帮助过:23人阅读

若数组字段rows.Scan用interface{}输入,会乱码,但如果字段可为null,scan又会报错

最后将表里面的字段设为not null,然后go读出的string为image=="{... , ... , ...}"

strings.Split(image[1:len(image)-1],",")

go postgresql array

标签:split   str   null   nbsp   color   bsp   sql   常量   can   

人气教程排行