OleDbType 枚举与 Microsoft Access 数据类型
最常见的数据类型映射的列表
下表列出了在 Microsoft Access 和如何这些数据类型与相关 Microsoft.net 框架数据类型,并 OleDbType 枚举中使用最常见的数据类型。
收起该表格展开该表格
访问类型名称
数据库数据类型
OLE DB 类型
.NET 框架类型
成员名称
文本
VarWChar
DBTYPE_WSTR
System.String
OleDbType.VarWChar
备忘录
LongVarWCha r
DBTYPE_WSTR
System.String
OleDbType.LongVarWChar
数字: 字节
UnsignedTinyInt
dbtype_ui1
System.Byte
OleDbType.UnsignedTinyInt
是/否
布尔
DBTYPE_BOOL
System.Boolean
OleDbType.Boolean
日期/时间
日期时间
DBTYPE_DATE
System.DateTime
OleDbType.Date
货币
十进制
DBTYPE_NUMERIC
System.Decimal
OleDbType.Numeric
数字: 十进制
十进制
DBTYPE_NUMERIC
System.Decimal
OleDbType.Numeric
数字: 双
双
dbtype_r8
System.Double
OleDbType.Double
自动编号 (同步复制 ID)
GUID
DBTYPE_GUID
System.Guid
OleDbType.Guid
号码: (同步复制 ID)
GUID
DBTYPE_GUID
System.Guid
OleDbType.Guid
自动编号 (长整型)
整数
dbtype_i4
System.Int32
OleDbType.Integer
号码: (长整型)
整数
dbtype_i4
System.Int32
OleDbType.Integer
OLE 对象
LongVarBinary
DBTYPE_BYTES
System.Byte 的数组
OleDbType.LongVarBinary
数字: 单一
单个
dbtype_r4
System.Single
OleDbType.Single
编号: 整型
SmallInt
dbtype_i2
System.Int16
OleDbType.SmallInt
二进制
VarBinary *
DBTYPE_BYTES
System.Byte 的数组
OleDbType.Binary
超链接
VarWChar
DBTYPE_WSTR
System.String
OleDbType.VarWChar
转自
相关文档:
//读取标准列表
private void setModelList()
{
OleDbConnection Connection = null;
&n ......
HTML clipboard
Presidential edition double action fingerprint and access code security door
lock for your office, business or home. Get 100% safety at your entry point with
this maximum security style deadbolt double action lock.
This is one of the best and most secure methods in assuri ......
世事洞明皆学问,人情练达即文章。做ASP时,最常用的数据库即Sqlserver与Access数据库莫属了!
但使用会经常发现很多SQL执行的问题。这里整理出之间的差异,做个十大差异的总结。
ACCESS结构简单容易处理,而且也能满足多数的网站程序要求,也是初学者的试牛刀。
ACCESS是小型数据库,既然是小型就有他根本的局限性:
......
连接ACCESS数据库的简单JSP代码:
<%@ page language="java" contentType="text/html; charset=GB18030"
pageEncoding="GB18030"%>
<%@ page import="java.sql.*" %>
<%
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver") ;
String url="jdbc:odbc:Driver={MicroSoft Access Drive ......
创建基于对话框的应用程序ADO,向对话框中添加一个列表视图控件,并为其添加变量m_Grid
第一步:ADO对象的导入
在StdAfx.h头文件中:
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, bu
// are ......