您的位置:首页 > 移动开发

List of the Most Common Data Type Mappings

2004-07-12 11:34 537 查看
http://support.microsoft.com/default.aspx?scid=kb;en-us;320435
The following table lists the most common data types that are used in Microsoft Access and how these data types relate to the Microsoft .NET Framework data types and to the OleDbType enumeration.

Access Type NameDatabase Data TypeOLE DB Type.NET Framework TypeMember Name
TextVarWCharDBTYPE_WSTRSystem.StringOleDbType.VarWChar
MemoLongVarWCharDBTYPE_WSTRSystem.StringOleDbType.LongVarWChar
Number: ByteUnsignedTinyIntDBTYPE_UI1System.ByteOleDbType.UnsignedTinyInt
Yes/NoBooleanDBTYPE_BOOLSystem.BooleanOleDbType.Boolean
Date/TimeDateTimeDBTYPE_DATESystem.DateTimeOleDbType.Date
CurrencyDecimalDBTYPE_NUMERICSystem.DecimalOleDbType.Numeric
Number: DecimalDecimalDBTYPE_NUMERICSystem.DecimalOleDbType.Numeric
Number: DoubleDoubleDBTYPE_R8System.DoubleOleDbType.Double
Autonumber (Replication ID)GUIDDBTYPE_GUIDSystem.GuidOleDbType.Guid
Number: (Replication ID)GUIDDBTYPE_GUIDSystem.GuidOleDbType.Guid
Autonumber (Long Integer)IntegerDBTYPE_I4System.Int32OleDbType.Integer
Number: (Long Integer)IntegerDBTYPE_I4System.Int32OleDbType.Integer
OLE ObjectLongVarBinaryDBTYPE_BYTESArray of System.ByteOleDbType.LongVarBinary
Number: SingleSingleDBTYPE_R4System.SingleOleDbType.Single
Number: IntegerSmallIntDBTYPE_I2System.Int16OleDbType.SmallInt
BinaryVarBinary*DBTYPE_BYTESArray of System.ByteOleDbType.Binary
HyperlinkVarWCharDBTYPE_WSTRSystem.StringOleDbType.VarWChar
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息