?? 何時使用導入或聯接.htm
字號:
<html>
<head>
<title>洪恩在線 - Access 2000</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="/pc/pc.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"><font color="#000000"><font color="#FF9966">當前位置</font>:<a href="/default.htm">在線教程</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" class="p1" height="123">
<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"> </td> <td height="20" bgcolor="#E8E8E8" width="23"> </td> </tr> </table>
<p class="p1" 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>
<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>
<a href="ac2k0901.htm">建立簡單的查詢</a></span><span class="p1"> <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></span><span class="p1"><br>
<font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font>
<a href="ac2k1301.htm">為WEB頁提供數據</a></span><span class="p1"> <br>
<font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font></span>
<span class="p1"><a href="ac2k1401.htm">用圖表顯示數據</a></span> <br>
<span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font></span>
<span class="p1"><a href="ac2k1501.htm">宏的使用</a></span> <br>
<span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font></span>
<span class="p1"><a href="ac2k1601.htm">模塊與“VBA”語言</a></span><a href="ac2k1601.htm"><span class="p1">
</span></a><br>
<span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font></span>
<span class="p1"><a href="ac2k1701.htm">SQL語言妙用</a></span> <br>
<span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font></span>
<span class="p1">外部數據的使用</span></p>
<p class="p1" style="line-height:17pt" align="left"> 何時使用導入或聯接<br>
<a href="ac2k1802.htm">如何鏈接外部數據</a><br>
<a href="ac2k1803.htm">導入一個數據庫文件</a><br>
<a href="ac2k1804.htm">如何導出數據</a><br>
<a href="ac2k1805.htm">補充內容一</a><br>
<a href="ac2k1806.htm">補充內容二</a><br>
<a href="ac2k1807.htm">補充內容三</a><br>
<br>
<span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font></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></span>
<a href="ac2k2001.htm"><span class="p1">容易忽略的工作</span></a></p>
<p class="p1" style="line-height:17pt" align="left"> </p>
<p align="center" class=p1><a href=/pc/bin/msg.pl?file_id=k_ac2k_18 target="_blank"><br>
</a>
<script language="javascript">
speak_num="za"
</script>
<script language="javascript" src=/pc/var/pc_k_ac2k_18.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 class="p1" style="line-height:17pt" align="left"> </p>
</td>
<td width=1 bgcolor=#0586D7 height="123"><img src="/pc/img/blank.gif" width="1" height="1">
</td><td width=15 background="/pc/img/line.gif"><p> </p></td>
<td valign="top" background="/pc/img/line.gif" width="584" height="123" class="p2">
<p align="center"><font color="#ff333"><b><span class="p3"><br>
何時使用導入或聯接</span></b></font> </p>
<p align="left"> <span style="line-height:17pt"> 在Access中,可以很方便地從外部數據庫中獲取數據,這些數據庫包括現在所有的各種主流數據庫,像Dbase、Sybase、Oracle、Foxpro等。這樣你就不用去一個一個地重新輸入原來的數據了。
在Access中,可以用“獲取外部數據”命令來獲取外部數據庫的數據,這個命令包括兩種方式“導入”和“鏈接表”。對于不同的外部數據庫可以用不同的獲取方式。而且在Access中,不光可以獲取外部數據,還可以導出別的數據庫,就是將用Access建立的數據庫保存為別的數據庫形式,像FOXPRO,DBASE數據庫等。</span></p>
<p><span style="line-height:17pt"> 單擊“文件”菜單中的“獲取外部數據”項,彈出一個子菜單,</span><span style="line-height:17pt">上面有“導入”和“鏈接表”兩個選項。我們單擊其中的一個選項就可以實現導入或聯接一個外部的數據庫。雖然這兩個命令的功用都是打開外部的一個數據庫,并從中獲取需要的數據,但在使用上,還是有差別的。<br>
<br>
在我們使用“導入”這個方法來獲取外部數據時需要注意幾個條件。<br>
一、需要我們打開的數據庫文件相對來說比較小,而且不會被其他數據庫應用程序的用 戶頻繁更改。<br>
二、不需要與其他數據庫應用程序的用戶共享數據。<br>
四、在使用其他數據庫中的數據時,需要最佳性能。 <br>
<br>
使用“鏈接表”方法來獲取外部數據時也需要注意幾個條件:<br>
一、需要打開的文件比較大,甚至比本地Access數據庫的最大容量(1GB)還要大。<br>
二、這個文件經常被其他數據庫應用程序的用戶更改。<br>
三、必須在網絡上與其他數據庫應用程序的用戶共享這個文件。<br>
四、需要把應用程序分布到幾個單獨的用戶那里,而且,你可能要不斷更新開發的應用程序接口,將“應用程序”與數據分開可以更容易地更新應用程序,而不會干擾用戶積累的數據。
<br>
<br>
這就是為什么要在“獲取外部數據”這個過程當中設置兩種方法。如果要用的數據庫并不大,但每天都可能要修改,而且由幾個人來修改不同的部分,對于這種情況,最重要的是每天都有新的數據要處理,而單純的將表導入進來,由于在Access中開發新的系統需要一定的時間,在這段時間內就有可能有新的數據輸入進來。開始導入的數據就有很多可能已經更新了。所以這時使用“鏈接表”就不會出現這種問題,干擾到別的用戶積累的數據。當然在Access中執行現在這臺機器上的數據庫文件是最快的,使用鏈接常常會因為很多原因使你的工作變得很慢,這點是你必須考慮的。</span>
</p>
<p> </p>
<p align="center"><img src="img/inster03.gif" width="250" height="229" alt="插圖" border="1">
</p>
<p> </p>
<p align="center"><a href="ac2k1704.htm">上一頁</a> <a href="ac2k1802.htm">
下一頁</a> </p>
<p align="center"> </p>
<p> </p></td><td width=15 background="/pc/img/line.gif"><p> </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 + -