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

📄 ac2k0403.htm

📁 我是在使用VC查询数据库时
💻 HTM
字号:
<html>
<head>
<!-- #BeginEditable "doctitle" -->
<title>洪恩在线 - Access 2000</title>
<!-- #EndEditable --> 
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">


<link rel="stylesheet" href="/pub/css/home.css">
<link rel="stylesheet" href="/pc/oa/oa.css">
<meta name="keywords" content="电脑,教育,教程,办公软件,microsoft,Office,office,Access,Access 2000,数据库,对象,关系,表,数据">
</head>

<body bgcolor="white" text="black" topmargin="10" leftmargin="0" marginwidth="0" marginheight="10">
<!--顶部开始--> 
<script language="Javascript" src="/pub/js/head.js"></script>
<!--顶部结束--> 
<table width="760" height="20" border=0 cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td height=20 class="p1" bgcolor="#E8E8E8" align="left"><img src="/pc/img/blank.gif" width="12" height="8"><font color="#FF9966">当前位置</font>:<a href="http://www.book52.com/">LR电脑书籍网 </a> → <a href="http://www.book52.com/soft/">电脑书下载 </a> → <a href="http://www.book52.com/soft/sort06/list6_1.html">数据库类 </a> → <a href="http://www.book52.com/soft/sort06/sort049/list49_1.html">Access书籍 </a>  <font color="#330099">→</font> Access 2000</td>
  </tr>
</table>
<table width="760" border=0 cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td height="15"></td>
  </tr>
</table>
<table width="760" cellspacing="0" border=0 cellpadding="0" align="center">
  <tr> 
    <td width="145" valign="top" bgcolor="#E8E8E8" align="left" style="color:blue" height="183"> 
      <img src="/pc/img/blank.gif" width="1" height="10" align=center><br>
      <table width="145" border="0" cellspacing="0" cellpadding="0" bordercolor="#F8AC0E" align="center" height="20">
        <tr bgcolor="000099" valign="middle"> 
          <td width="109" align="center" class="p2"><font color="#FFFFFF"><b>Access 
            2000</b></font><font color="#FF3333" ><b></b></font></td>
          <td height="20" bgcolor="#E8E8E8" width="13"><img src="/pc/img/title_00.gif" width="13" height="20"></td>
          <td height="20" bgcolor="#E8E8E8" width="23">&nbsp;</td>
        </tr>
      </table>
      <p></p>
      <p></p>
      <p style="line-height:17pt" align="left"><span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"> 
        <a href="ac2k0101.htm">初识Access 2000<br>
        </a></font><font color="#0000CC"> </font></span><span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"> 
        <a href="ac2k0201.htm">窗口接口使用简介<br>
        </a></font></span><font color="#0000CC"><span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font> 
        <a href="ac2k0301.htm">用向导建立数据库</a></span></font><font color="#0000CC"><span class="p1"><a href="ac2k0301.htm"> 
        <br>
        </a><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font> 
        数据库的结构<br>
        <br>
        <span class="p1">  <a href="ac2k0401.htm">规划自己的数据库</a><br>
          <a href="ac2k0402.htm">建立一个空的数据库</a><br>
          主要对象及其关系<br>
        </span> <br>
        <font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font> 
        <a href="ac2k0501.htm">用表向导建立表<br>
        </a><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font> 
        <a href="ac2k0601.htm">在表中输入数据<br>
        </a><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font> 
        <a href="ac2k0701.htm">数据的类型和属性<br>
        </a></span></font><span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font> 
        <a href="ac2k0801.htm" class="p1">定义表之间的关系<br>
        </a><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font> 
        <a href="ac2k0901.htm">建立简单的查询</a><br>
        <font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font> 
        <a href="ac2k1001.htm">为查询制定规则</a><br>
        <font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font> 
        <a href="ac2k1101.htm">如何建立数据窗体<br>
        </a><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font> 
        <a href="ac2k1201.htm">生成数据打印报表</a><br>
        <font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font> 
        <a href="ac2k1301.htm">为WEB页提供数据<br>
        </a><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font> 
        <a href="ac2k1301.htm"></a></span><a href="ac2k1401.htm" class="p1">用图表显示数据</a><br>
        <span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font> 
        <a href="ac2k1301.htm"></a></span><a href="ac2k1501.htm"><span class="p1">宏的使用</span><br>
        </a><span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font> 
        <a href="ac2k1301.htm"></a></span><a href="ac2k1601.htm"><span class="p1">模块与“VBA”语言</span><br>
        </a><span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font> 
        <a href="ac2k1301.htm"></a></span><a href="ac2k1701.htm"><span class="p1">SQL语言妙用</span><br>
        </a><span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font> 
        <a href="ac2k1301.htm"></a></span><a href="ac2k1801.htm"><span class="p1">外部数据的使用</span><br>
        </a><span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font> 
        <a href="ac2k1301.htm"></a></span><a href="ac2k1901.htm"><span class="p1">数据的优化和安全</span><br>
        </a><span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font> 
        <a href="ac2k1301.htm"></a></span><a href="ac2k2001.htm"><span class="p1">容易忽略的工作</span></a></p>
      <p style="line-height:17pt" align="left">&nbsp;</p>
      <p align="center" class=p1> <a href=/pc/bin/msg.pl?file_id=k_ac2k_4 target="_blank"><img src="/pc/img/message.gif" width="64" height="54" alt="请您留言" border="0"><br> 谈谈您的看法</a> 
        <br>
        <script language="javascript">
speak_num="za"
</script>
        <script language="javascript" src=/pc/var/pc_k_ac2k_4.js>
</script>
        <script language="javascript">
var num=0
if (!isNaN(speak_num)){
	num=speak_num;
}
else{
	num=0
}
document.writeln ("已有")
document.writeln (num)
document.writeln ("条发言")
</script>
      </p>
      <p style="line-height:17pt" align="left">&nbsp; </p>
      <p style="line-height:17pt" align="left">&nbsp; </p>
      <p style="line-height:17pt" align="left"><span class="p1"><span class="p1"> 
        </span></span> </p>
      </td>
    <td width=1 bgcolor=#0586D7 height="183"><img src="/pc/img/blank.gif" width="1" height="1"> 
    </td>
    <td valign="top" bgcolor="#FFFFFF" background="/pc/img/line.gif" width="614" height="183"> 
      <table width="95%" border="0" align="center">
              
        <tr background="/pc/img/line.gif"> 
          <td colspan="2" class="p3" height="50"> 
            <div align="center"><font color="#003333"><b><font color="#FF3333">Access数据库中的主要对象及其关系</font></b></font></div>
          </td>
        </tr>
        <tr background="/pc/img/line.gif"> 
          <td colspan="2" class="p2"> 
            <p class=p2><span style="line-height:17pt">  我们知道在建筑一栋房子之前,首先必须要有一块地皮,然后才能在地皮上按照设计好的图纸一层层的搭建房子,最后才是人住进去。现在我们有了一个空的数据库,就等于在Access中已经有了这样一块“地皮”,现在可以建房子了。上一课用数据库向导建立的数据库就是一个已经建筑完毕的“房子”,只是还没有“数据”住进去罢了。在Access中,所谓的建房材料就是数据库中的主要对象,它包括“表”、“查询”、“窗体”、“报表”、“页面”、“宏”和“模块”。这些对象在数据库中各自负责一定的功能,并且相互协作,这样才能建设出一个数据库。</span></p>
            <p class=p2><span style="line-height:17pt">  在数据库中,“表”用来存储数据;“查询”用来查找数据;人通过“窗体”、“报表”、“页面”获取数据;而“宏”和“模块”则用来实现数据的自动操作。其实对于数据库来说,最重要的功能就是获取数据库中的数据,所以数据在数据库各个对象间的流动就成为我们最关心的事情。为了以后建立数据库的时候能清楚的安排各种结构,应该先了解一下Access数据库中对象间的作用和联系。</span></p>
            <p class=p2><span style="line-height:17pt">  作为一个数据库,最基本的就是要有表,并且表中存储了数据。比如“通讯录”数据库,首先要建立一个表,然后将某人的联系地址、电话等信息输入到这个数据表中,这样就有了数据库中的数据源。有了这些数据以后,就可以将它们显示在窗体上。这个过程就是将表中的数据和窗体上的控件建立连接,在Access中把这个过程叫做“绑定”。这样就可以通过屏幕上的各种各样的窗体界面来获得真正存储在表中的数据了。而且合理地在窗体上摆放控件和图案可以使我们更容易操作和理解数据库中数据代表的含意。这样就完成数据从表到窗体的流动,实现了数据库中的数据在计算机和人之间进行了一次沟通。比如在“通讯录”数据库中,使用自动窗体将数据库中的一个记录显示在窗体上,控制窗体上的记录操作按钮在表中前后移动,可以看到对应其它记录的信息。现在,数据库中的表和窗体对象之间的关系应该很清晰了,我们可以画出一个表。至于数据库中的其他对象,现在先把它们空出来。在以后学习了其他的几种对象以后,将把这个表示数据库中数据流向的图表补充完整。我们以后可以每学一课,就按照这种方式将各种对象间的数据流向画出来,这对于建立一个完整的数据库很有好处。</span></p>
            <p class=p2><span style="line-height:17pt">  结束语:在这一课中,我们通过建立一个空数据库,结合上一课中的内容,讲解了建立一个新数据库需要注意的问题和数据库中每个对象的用途和相互关系。如果想了解更多关于Access数据库的知识,掌握Access数据库的使用方法,那就请看下面几课了。</span></p>
          </td>
        </tr>
        <tr background="/pc/img/line.gif">
          <td colspan="2" class="p2">
            <p>&nbsp;</p>
            <p align="center"><img src="img/inster02.gif" width="250" height="224" alt="插图" border="1"></p>
          </td>
        </tr>
      </table>  
      <p align="center"><font size="2"><a href="ac2k0402.htm">上一节</a></font></p>
      <p align="center" class=p2><a href=/pc/bin/msg.pl?file_id=k_ac2k_4 target="_blank"><img src="/pc/img/message.gif" width="64" height="54" alt="请您留言" border="0"><br> 谈谈您的看法</a> 
        <script language="javascript">
speak_num="za"
</script>
        <script language="javascript" src=/pc/var/pc_k_ac2k_4.js>
</script>
        <script language="javascript">
var num=0
if (!isNaN(speak_num)){
	num=speak_num;
}
else{
	num=0
}
document.writeln ("已有")
document.writeln (num)
document.writeln ("条发言")
</script>
      </p>
      <p>&nbsp;</p>
    </td>
  </tr>
</table>
<script language="Javascript" src="/pub/js/foot.js"></script>
<!--底部结束-->
</body>
</html> 

⌨️ 快捷键说明

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