⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chap1010.htm

📁 着重介绍基于C++的web编程技术
💻 HTM
字号:
<html>

<head>
<title>小 结</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
</head>

<body link="#3973DE" alink="#3973DE">
<font SIZE="5"><b><div align="center"><center>

<table border="0" width="615" cellspacing="0" cellpadding="0">
  <tr>
    </b><td><div align="center"><center><table border="0" width="615" cellpadding="0" cellspacing="0" height="20">
      <tr>
        <td width="377" bgcolor="#15397D" height="20"></td>
        <td width="238" bgcolor="#000000" height="20"><p align="right"></font><span style="text-decoration: none"><a href="../../index.htm"><font color="#FFFFFF">电脑报Visual 
        C++网络教程</font></a></span></td>
      </tr>
    </table>
    </center></div><font SIZE="3"><b><p ALIGN="CENTER"></b></font><font color="#3973DE" size="4">小 结</font><font FACE="Times New Roman" size="4"></p>
    </font><font FACE="Times New Roman" SIZE="3"><p ALIGN="JUSTIFY"></font><font SIZE="3">本章介绍了</font><font FACE="Times New Roman" SIZE="3">MFC</font><font SIZE="3">的</font><font FACE="Times New Roman" SIZE="3">ODBC</font><font SIZE="3">和</font><font FACE="Times New Roman" SIZE="3">DAO</font><font SIZE="3">类,并向读者演示了编写数据库应用程序的方法。本章的要点包括:</p>
    <blockquote>
      <p ALIGN="JUSTIFY">关系数据库由多个相关的表组成,<font FACE="Times New Roman" SIZE="3">DBMS</font>(数据库管理系统)是一套程序,用来定义、管理和处理数据库与应用程序之间的联系,<font FACE="Times New Roman" SIZE="3">SQL</font>是一种标准的数据库语言,目前大多数<font FACE="Times New Roman" SIZE="3">DBMS</font>都支持它。</p>
      <p ALIGN="JUSTIFY">用<font FACE="Times New Roman" SIZE="3">ODBC</font>和<font FACE="Times New Roman" SIZE="3">DAO</font>,用户可以编写独立于<font FACE="Times New Roman" SIZE="3">DBMS</font>的数据库应用程序。</p>
      <p ALIGN="JUSTIFY">在访问<font FACE="Times New Roman" SIZE="3">ODBC</font>数据源之前,应该安装相应的<font FACE="Times New Roman" SIZE="3">ODBC</font>驱动程序,并在<font FACE="Times New Roman" SIZE="3">ODBC</font>管理器中注册<font FACE="Times New Roman" SIZE="3">DSN</font>。</p>
      <font FACE="Times New Roman" SIZE="3"><p ALIGN="JUSTIFY">MFC</font>提供了<font FACE="Times New Roman" SIZE="3">ODBC</font>类,其中<font FACE="Times New Roman" SIZE="3">CDatabase</font>针对某个数据库,它负责连接数据源,<font FACE="Times New Roman" SIZE="3">CRecordset</font>针对数据源中的记录集,它负责对记录的操作,<font FACE="Times New Roman" SIZE="3">CRecordView</font>负责界面,而<font FACE="Times New Roman" SIZE="3">CFieldExchange</font>负责<font FACE="Times New Roman" SIZE="3">CRecordset</font>与数据源的数据交换。</p>
      <p ALIGN="JUSTIFY">记录集主要包括动态集和快照。快照提供了对数据的静态视,动态集提供了数据的动态视。</p>
      <p ALIGN="JUSTIFY">通过学习<font FACE="Times New Roman" SIZE="3">Enroll</font>例子,读者可以掌握数据库编程的方法。</p>
      <p ALIGN="JUSTIFY">一般来说,<font FACE="Times New Roman" SIZE="3">DAO</font>提供了比<font FACE="Times New Roman" SIZE="3">ODBC</font>类更广泛的支持。<font FACE="Times New Roman" SIZE="3">DAO</font>提供了几个新类,包括<font FACE="Times New Roman" SIZE="3">CDaoTableDef</font>、<font FACE="Times New Roman" SIZE="3">CDaoQueryDef</font>、<font FACE="Times New Roman" SIZE="3">CDaoWorkspace</font>等。<font FACE="Times New Roman" SIZE="3">DAO</font>支持<font FACE="Times New Roman" SIZE="3">DDL(</font>数据定义语言<font FACE="Times New Roman" SIZE="3">)</font>,<font FACE="Times New Roman" SIZE="3">DAO</font>对<font FACE="Times New Roman" SIZE="3">Access</font>数据库提供了强大的支持。</p>
      <p ALIGN="JUSTIFY">通过手工编写少量代码,就可以使应用程序能够对用户透明地注册<font FACE="Times New Roman" SIZE="3">DSN</font>并任意创建表。</p>
      </font>
    </blockquote>
    <div align="center"><center><table border="0" cellpadding="0" cellspacing="0" width="615">
      <tr>
        <td><a href="chap10_9.htm">上一页</a></td>
        <td><p align="right"></td>
      </tr>
    </table>
    </center></div><font SIZE="5"><hr noshade color="#3973DE" size="1">
    <p align="center"></font><font size="2" color="#000000">本教程由<a href="http://vcdynasty.yeah.net">Visual C++王朝(Where programmers come together)</a>协助制作<br>
    未经许可,请勿以任何形式复制</font></td>
    <b>
  </tr>
</table>
</center></div>

<p ALIGN="CENTER"></b><font SIZE="5"> </font><font FACE="Times New Roman" SIZE="5"></p>
</font><font FACE="Times New Roman" SIZE="3">

<p></font><b><font SIZE="3"> </font><font FACE="Times New Roman" SIZE="3"></p>
</font></b>

<p><font SIZE="3"> </font><font FACE="Times New Roman" SIZE="3"></p>

<p></font> </p>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -