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")
相關文章
相關標籤/搜索