MySql和SQL Server数据类型 对比

My Sql 数据类型SQL Server 数据类型
 Yes/Nobit
 Smallint(字节型)tinyint
Integer(长整型int
 Real(单精度浮点型real
 Float(双精度浮点型float
Currencymoney
smallmoney
Decimal/numericdecimal
numeric
Date/Timedatetime
smalldatetime
AutoNumber(增量)int(带有定义的 Identity 属性)
Text (n)varchar(n)
nvarchar(n)
Memotext
IMAGE(OLE Object)图像
Replication ID(也称作全球唯一标识符 (GUID))uniqueidentifier (仅适于 SQL Server 7.0)
Hyperlinkntext(但超级链接没有激活)
(无等价的数据类型)nchar
(无等价的数据类型)varbinary
(无等价的数据类型)用户定义
(无等价的数据类型)smallint
(无等价的数据类型)timestamp
(无等价的数据类型)char
 nchar