Go

Go 数据类型 SQL 映射

Go SQL Data Types Mapping

Posted by zihengCat on 2020-09-28
Go SQL(MySQL)
int8 tinyint
int16 smallint
int32 integer
int64 bigint
uint8 tinyint unsigned
uint16 smallint unsigned
uint32 integer unsigned
uint64 bigint unsigned
float32 float
float64 double
string varchar
string text
time.Time date
time.Time datetime
time.Time timestamp

表:Go 数据类型 SQL 映射表