MySql和SQL Server数据类型 对比

My Sql 数据类型 SQL Server 数据类型
 Yes/No bit
 Smallint(字节型) tinyint
Integer(长整型 int
 Real(单精度浮点型    real
 Float(双精度浮点型 float
Currency money
smallmoney
   Decimal/numeric decimal
numeric
   Date/Time datetime
smalldatetime
AutoNumber(增量) int(带有定义的 Identity 属性)
Text (n) varchar(n)
nvarchar(n)
Memo text
IMAGE(OLE Object) 图像
Replication ID(也称作全球唯一标识符 (GUID)) uniqueidentifier (仅适于 SQL Server 7.0)
Hyperlink ntext(但超级链接没有激活)
(无等价的数据类型) nchar
(无等价的数据类型) varbinary
(无等价的数据类型) 用户定义
(无等价的数据类型) smallint
(无等价的数据类型) timestamp
(无等价的数据类型) char
  nchar
posted @ 2015-05-05 10:50  yubinfeng  阅读(393)  评论(0编辑  收藏  举报