Scan error on column index 3: unsupported Scan, storing driver.Value type []uint8 into type *time.Ti

使用gorm框架,数据库使用的mysql  直接上解决办法 最后加上这个便可mysql parseTime=true db,err:=gorm.Open("mysql","用户名:密码@tcp(localhost:3306)/数据库名?charset=utf8&parseTime=true")
相关文章
相关标签/搜索