?? ac2k1701.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"><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" 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"><img src="/pc/img/title_00.gif" width="13" height="20"></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">SQL語言妙用</span></p>
<p style="line-height:17pt" align="left"> 查詢中SQL視圖的切換<br>
<a href="ac2k1702.htm">基本的SQL語句</a><br>
<a href="ac2k1703.htm">使用SQL語句聯接表</a><br>
<a href="ac2k1704.htm">補充內容</a><br>
<br>
<span class="p1"><font color="#0000CC"><img src="img/small.gif" width="12" height="12"></font></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></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 style="line-height:17pt" align="left"> </p>
<p align="center" class=p1><a href=/pc/bin/msg.pl?file_id=k_ac2k_17 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_17.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>
<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=18 background="/pc/img/line.gif">
<p> </p></td>
<td valign="top" background="/pc/img/line.gif" width="581" height="123" class="p2">
<p align="center"><font color="#ff333"><b><span class="p3"><br>
</span><span class="p3">查詢SQL視圖的切換</span></b></font></p>
<p align="center"><span style="line-height:17pt"> 在使用過程中,我們經常會使用到一些查詢,但這些查詢用各種查詢向導和設計器都無法做出來,不知道你還記不記得,在查詢那一課中我們講過SQL查詢,用這種查詢就可以完成比較復雜的查詢工作。當時你還剛剛開始使用ACCESS,用設計視圖和向導就可以建立很多有用的查詢,這些足夠你掌握一段時間了,而且它的功能已經基本上能滿足我們的需要。而SQL語言作為一種通用的數據庫操作語言,并不是ACCESS用戶必須要掌握的,但在實際的工作中有時必須用到這種語言才能完成一些特殊的工作。
<br>
單純的SQL語言所包含的語句并不多,但在使用的過程中需要大量輸入各種表、查詢和字段的名字。這樣當你建立一個涉及大量字段的查詢時,就需要輸入大量文字,與用查詢設計視圖建立查詢相比,就麻煩多了。所以我在建立查詢的時候也都是先在查詢設計視圖將基本的查詢功能都實現了,最后再切換到SQL視圖通過編寫SQL語句完成一些特殊的查詢。下面我們就介紹一些在ACCESS使用中常常會用到的一些SQL語言。</span></p>
<p> <span style="line-height:17pt">我們說過在建立查詢的時候可以切換到SQL視圖去,下面來看看是怎么切換的:</span></p>
<p align="center"><img src="img/ac2k1701.gif" width="380" height="273" alt="“sql數據庫”窗口"></p>
<p><span style="line-height:17pt"> 當你打開一個查詢以后,單擊“新建方法”列表的時候并沒有一個“使用SQL視圖創建查詢”的選項,</span></p>
<p align="center"><img src="img/ac2k1702.gif" width="351" height="204" alt="“新建查詢”對話框"></p>
<p><span style="line-height:17pt"> 這也表明ACCESS并不提倡在工作中使用SQL語言,那我們就單擊“在設計視圖中創建查詢”這一項,之后將會在屏幕上出現一個設計視圖,</span></p>
<p align="center"><img src="img/ac2k1703.gif" width="450" height="245" alt="“選擇查詢”窗口" border="1"></p>
<p align="left"><span style="line-height:17pt"> 現在我們要切換到SQL視圖,只要將鼠標移動到工具欄最左面的“視圖”選項按鈕</span><img src="img/ac2k1704.gif" width="32" height="22" align="absmiddle" alt="“SQL設計視圖”按鈕"><span style="line-height:17pt">右邊的向下按鈕上,單擊鼠標左鍵,在彈出的下拉菜單中選中“SQL
設計視圖”項就可以將視圖切換到SQL狀態。</span> </p>
<p align="center"><img src="img/ac2k1706.gif" width="420" height="229" alt="SQL視圖狀態" border="1"></p>
<hr color=blue size=1>
<p align="center"><font size="2"> <a href="ac2k1702.htm">下一節</a></font> </p>
<p align="center"><a href=/pc/bin/msg.pl?file_id=k_ac2k_17 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_17.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> </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 + -