📄 ac2k0901.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/pc.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="#000000"><font color="#FF9966">当前位置</font>:<a href="/default.htm" class="under">洪恩在线</a>
-> <a href="/pc/index.htm" class="under">电脑乐园</a> -> Access 2000</font></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"> </td>
</tr>
</table>
<p><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>
<a href="ac2k0401.htm">数据库的结构</a> <span class="p1"><a href="ac2k0403.htm">
</a></span> <br>
<font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font>
<a href="ac2k0501.htm">用表向导建立表</a></span></font> <font color="#0000CC"><span class="p1"><a href="ac2k0501.htm">
<br>
</a><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font>
<a href="ac2k0601.htm">在表中输入数据</a> <a href="ac2k0601.htm"><br>
</a><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font>
<a href="ac2k0701.htm">数据的类型和属性</a><span class="p1"> </span><br>
</span></font><span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font>
<a href="ac2k0801.htm">定义表之间的关系</a></span><span class="p1"><br>
<font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font>
建立简单的查询</span></p>
<p style="line-height:17pt" align="left"><span class="p1"><span class="p1">
查询与表<br>
<a href="ac2k0902.htm">为建立查询做准备</a><br>
<a href="ac2k0903.htm">选择需要查询的表</a><br>
<a href="ac2k0904.htm">认识查询设计视图</a><br>
<a href="ac2k0905.htm">添加和删除目标字段</a><br>
<a href="ac2k0906.htm">查询的数据表视图</a><br>
<a href="ac2k0907.htm">汇总数据</a><br>
<a href="ac2k0908.htm">保存新建的查询</a><br>
<a href="ac2k0909.htm">补充内容</a></span><br>
<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="center" class=p1><a href=/pc/bin/msg.pl?file_id=k_ac2k_9 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_9.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>
</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">查询与表</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中另一个非常重要的内容…… 查询!</span></p>
<p class=p2><span style="line-height:17pt"> 用“查找”按钮来找数据说的是查找,并不是查询。在回答“查询究竟是什么?”这个问题之前,我们首先要知道,并不需要将所有可能用到的数据都罗列在表上,即使是一些需要计算的值,也统统先算好以后才填到表中,仍然像在纸上使用表格及其里面的数据那样,完全没有觉得Access数据库中的表和纸上的表格有什么区别。这是很多刚刚接触Access数据库的人通常会出现的情况。其实在Access数据库中的表并不是一个百宝箱,不需要将所有的数据都保存在一张表中。不同的数据可以分门别类地保存在不同的表中,就像在“客户信息表”中保存和客户资料有关的信息,而在“订单信息表”中保存和订单内容相关的信息。</span></p>
<p class=p2><span style="line-height:17pt"> 在使用表存储数据的时候我们都有侧重点,通过它们的名字就可以看出这个表是用来做什么的,这样很容易就可以知道哪些表中存储有什么数据内容。很少有人会把表的名字起成“表一”、“表二”的。如果有很多表的话,这样根本就不知道这些表存储了什么内容。所以我们在建立表的时候,首先想的就是要把同一类的数据放在一个表中,然后给这个表取个一目了然的名字,这样管理起来会方便得多。但是另一方面,我们在实际工作中使用数据库中的数据时,并不是简单地使用这个表或那个表中的数据,而常常是将有“关系”的很多表中的数据一起调出使用,有时还要把这些数据进行一定的计算以后才能使用。如果再建立一个新表,把要用到的数据拷贝到新表中,并把需要计算的数据都计算好,再填入新表中,就显得太麻烦了,用“查询”对象可以很轻松地解决这个问题,它同样也会生成一个数据表视图,看起来就像新建的“表”对象的数据表视图一样。“查询”的字段来自很多互相之间有“关系”的表,这些字段组合成一个新的数据表视图,但它并不存储任何的数据。当我们改变“表”中的数据时,“查询”中的数据也会发生改变。计算的工作也可以交给它来自动地完成,完全将用户从繁重的体力劳动中解脱出来,充分体现了计算机数据库的优越性。让我们在数据库中建立一个“查询”,看看“查询”究竟有什么用,该怎么用。</span></p>
</td>
</tr>
<tr background="/pc/img/line.gif">
<td colspan="2" class="p2">
<p> </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="ac2k0902.htm">下一页</a></font></p>
<p align="center"> </p>
<p align="center" class=p2><a href=/pc/bin/msg.pl?file_id=k_ac2k_9 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_9.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>
</td>
</tr>
</table>
<script language="Javascript" src="/pub/js/foot.js"></script>
<!--底部结束-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -