栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

C#等效于SQL Server数据类型

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

C#等效于SQL Server数据类型

这是针对SQL Server 2005的。该表具有SQL Server
2008
,SQL Server 2008
R2
,SQL
Server 2012
和SQL Server
2014的更新版本。

SQL Server数据类型及其.NET framework等效项

下表列出了Microsoft SQL Server数据类型, System.Data.SqlTypes 命名空间中SQL
Server的公共语言运行时(CLR)中的等效项以及Microsoft .NET framework中的本机CLR等效项。

SQL Server data type          CLR data type (SQL Server)    CLR data type (.NET framework)  varbinary          SqlBytes, SqlBinaryByte[]  binary  SqlBytes, SqlBinaryByte[]  varbinary(1), binary(1)       SqlBytes, SqlBinarybyte, Byte[] image   None    Nonevarchar None    Nonechar    None    Nonenvarchar(1), nchar(1)         SqlChars, SqlStringChar, String, Char[]     nvarcharSqlChars, SqlStringString, Char[] nchar   SqlChars, SqlStringString, Char[] text    None    Nonentext   None    Noneuniqueidentifier   SqlGuid Guid rowversion         None    Byte[]  bit     SqlBoolean         Boolean tinyint SqlByte Byte smallintSqlInt16Int16  int     SqlInt32Int32  bigint  SqlInt64Int64smallmoney         SqlMoneyDecimal  money   SqlMoneyDecimal  numeric SqlDecimal         Decimal  decimal SqlDecimal         Decimal  real    SqlSingle          Single  float   SqlDouble          Doublesmalldatetime      SqlDateTime        DateTime  datetimeSqlDateTime        DateTimesql_variant        None    Object  User-defined type(UDT)        None    user-defined type     table   None    None cursor  None    Nonetimestamp          None    None xml     SqlXml  None


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/368100.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号