golang连接mysql时parseTime和loc是什么意思?import ( "github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/mysql")func main() {
db, err := gorm.Open("mysql", "user:password@/dbname?charset=utf8&parseTime=True&loc=Local") defer db.Close()
}
添加回答
举报
0/150
提交
取消