« 上一篇

最全的MySql和C#数据类型对应表

Mysql和C#数据类型对应表 :

 

MySqlC#
bigintlong
bigint unsignedulong
intint
int unsigneduint
smallintshort
smallint unsignedushort
guidGuid
smalldatetimeDateTime
dateDateTime
datetimeDateTime
timestampDateTime
floatfloat
doubledouble
numericdecimal
smallmoneydecimal
decimaldecimal
moneydecimal
bitbool
boolbool
booleanbool
tinyintSByte
tinyint unsignedsbyte
imagebyte[]
binarybyte[]
blobbyte[]
mediumblobbyte[]
longblobbyte[]
varbinarybyte[]