亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ch14.htm

?? 21精通SQL
?? HTM
?? 第 1 頁 / 共 3 頁
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>

<HEAD>
	
	<TITLE>Teach Yourself SQL in 21 Days, Second Edition -- Ch 14 -- Dynamic Uses of SQL</TITLE>
</HEAD>

<BODY TEXT="#000000" BGCOLOR="#FFFFFF">

<CENTER>
<H1><IMG SRC="sams.gif" tppabs="http://202.113.16.101/%7eeb%7e/Teach%20Yourself%20MS%20SQL%20Server%206.5%20in%2021%20Days/sams.gif" WIDTH="171" HEIGHT="66" ALIGN="BOTTOM" BORDER="0"><BR>
<FONT COLOR="#000077">Teach Yourself SQL in 21 Days, Second Edition</FONT></H1>
</CENTER>
<CENTER>
<P><A HREF="ch13.htm" tppabs="http://202.113.16.101/%7eeb%7e/Teach%20Yourself%20MS%20SQL%20Server%206.5%20in%2021%20Days/ch13.htm"><IMG SRC="previous.gif" tppabs="http://202.113.16.101/%7eeb%7e/Teach%20Yourself%20MS%20SQL%20Server%206.5%20in%2021%20Days/previous.gif" WIDTH="128" HEIGHT="28"
ALIGN="BOTTOM" ALT="Previous chapter" BORDER="0"></A><A HREF="wk2rev.htm" tppabs="http://202.113.16.101/%7eeb%7e/Teach%20Yourself%20MS%20SQL%20Server%206.5%20in%2021%20Days/wk2rev.htm"><IMG
SRC="next.gif" tppabs="http://202.113.16.101/%7eeb%7e/Teach%20Yourself%20MS%20SQL%20Server%206.5%20in%2021%20Days/next.gif" WIDTH="128" HEIGHT="28" ALIGN="BOTTOM" ALT="Next chapter"
BORDER="0"></A><A HREF="index-1.htm" tppabs="http://202.113.16.101/%7eeb%7e/Teach%20Yourself%20MS%20SQL%20Server%206.5%20in%2021%20Days/index-1.htm"><IMG SRC="contents.gif" tppabs="http://202.113.16.101/%7eeb%7e/Teach%20Yourself%20MS%20SQL%20Server%206.5%20in%2021%20Days/contents.gif" WIDTH="128"
HEIGHT="28" ALIGN="BOTTOM" ALT="Contents" BORDER="0"></A> 
<HR>

</CENTER>
<CENTER>
<H1><FONT COLOR="#000077">- Day 14 -<BR>
Dynamic Uses of SQL</FONT></H1>
</CENTER>
<H2><FONT COLOR="#000077">Objectives</FONT></H2>
<P>The purpose of today's lesson is to show you where to start to apply what you
have learned so far. Today's lesson covers, in very broad strokes, practical applications
of SQL. We focus on applications in the Microsoft Windows environment, but the principles
involved are just as applicable to other software platforms. Today you will learn
the following:

<UL>
	<LI>How various commercial products--Personal Oracle7, open database connectivity
	(ODBC), InterBase ISQL, Microsoft's Visual C++, and Borland's Delphi--relate to SQL
	<P>
	<LI>How to set up your environment for SQL
	<P>
	<LI>How to create a database using Oracle7, Microsoft Query, and InterBase ISQL
	<P>
	<LI>How to use SQL inside applications written in Visual C++ and Delphi
</UL>

<P>After reading this material, you will know where to start applying your new SQL
skills.
<H2><FONT COLOR="#000077">A Quick Trip</FONT></H2>
<P>This section examines several commercial products in the context of the Microsoft
Windows operating system and briefly describes how they relate to SQL. The principles,
if not the products themselves, apply across various software platforms.
<H3><FONT COLOR="#000077">ODBC</FONT></H3>
<P>One of the underlying technologies in the Windows operating system is ODBC, which
enables Windows-based programs to access a database through a driver. Rather than
having a custom interface to each database, something you might very well have to
write yourself, you can connect to the database of your choice through a driver.
The concept of ODBC is very similar to the concept of Windows printer drivers, which
enables you to write your program without regard for the printer. Individual differences,
which DOS programming forced you to address, are conveniently handled by the printer
driver. The result is that you spend your time working on the tasks peculiar to your
program, not on writing printer drivers.</P>
<P>ODBC applies this idea to databases. The visual part of ODBC resides in the control
panel in Windows 3.1, 3.11, and Windows 95 and in its own program group in Windows
NT.</P>
<P>We cover ODBC in more detail when we discuss creating the database later today.
<H3><FONT COLOR="#000077">Personal Oracle7</FONT></H3>
<P>Personal Oracle7 is the popular database's latest incursion into the personal
PC market. Don't be put off by the number of programs that Oracle7 installs--we built
all the examples used in the first several days using only the Oracle Database Manager
and SQL*Plus 3.3. SQL*Plus is shown in Figure 14.1.</P>
<P><A NAME="01"></A><A HREF="01-2.htm" tppabs="http://202.113.16.101/%7eeb%7e/Teach%20Yourself%20MS%20SQL%20Server%206.5%20in%2021%20Days/01-2.htm"><B>Figure 14.1.</B></A></P>
<P><I>Oracle7's SQL*Plus.</I></P>
<P>
<H3><FONT COLOR="#000077">INTERBASE SQL (ISQL)</FONT></H3>
<P>The tool used in the other examples is Borland's ISQL. It is essentially the same
as Oracle7 except that Oracle7 is character oriented and ISQL is more Windows-like.</P>
<P>An ISQL screen is shown in Figure 14.2. You type your query in the top edit box,
and the result appears in the lower box. The Previous and Next buttons scroll you
through the list of all the queries you make during a session.</P>
<P><A NAME="02"></A><A HREF="02-2.htm" tppabs="http://202.113.16.101/%7eeb%7e/Teach%20Yourself%20MS%20SQL%20Server%206.5%20in%2021%20Days/02-2.htm"><B>Figure 14.2.</B></A></P>
<P><I>InterBase's Interactive SQL.</I></P>
<P>
<H3><FONT COLOR="#000077">Visual C++</FONT></H3>
<P>Dozens of books have been written about Visual C++. For the examples in this book,
we used version 1.52. The procedures we used are applicable to the 32-bit version,
C++ 2.0. It is used here because of its simple interface with ODBC. It is not the
only compiler with the capability to connect to ODBC. If you use a different compiler,
this section provides a good point of departure.</P>
<P>Visual C++ installs quite a few tools. We use only two: the compiler and the resource
editor.
<H3><FONT COLOR="#000077">Delphi</FONT></H3>
<P>The last tool we examine is Borland's Delphi, which is the subject of many new
books. Delphi provides a scalable interface to various databases.</P>
<P>Delphi has two programs that we use: the InterBase Server (Ibmgr) and the Windows
ISQL (Wisql).
<H2><FONT COLOR="#000077">Setting Up</FONT></H2>
<P>Enough with the introductions--let's get to work. After you install your SQL engine
or your ODBC-compatible compiler, you must do a certain amount of stage setting before
the stars can do their stuff. With both Oracle7 and InterBase, you need to log on
and create an account for yourself. The procedures are essentially the same. The
hardest part is sorting through the hard copy and online documentation for the default
passwords. Both systems have a default system administrator account. (See Figure
14.3.)</P>
<P><A NAME="03"></A><A HREF="03-1.htm" tppabs="http://202.113.16.101/%7eeb%7e/Teach%20Yourself%20MS%20SQL%20Server%206.5%20in%2021%20Days/03-1.htm"><B>Figure 14.3.</B></A></P>
<P><I>InterBase Security manager screen.</I></P>
<P>After logging on and creating an account, you are ready to create the database.
<H2><FONT COLOR="#000077">Creating the Database</FONT></H2>
<P>This step is where all your SQL training starts to pay off. First, you have to
start up the database you want to use. Figure 14.4 shows Oracle7's stoplight visual
metaphor.</P>
<P><A NAME="04"></A><A HREF="04-1.htm" tppabs="http://202.113.16.101/%7eeb%7e/Teach%20Yourself%20MS%20SQL%20Server%206.5%20in%2021%20Days/04-1.htm"><B>Figure 14.4.</B></A></P>
<P><I>Oracle7 Database Manager.</I></P>
<P>After you get the green light, you can open up the SQL*Plus 3.3 tool shown in
Figure 14.5.</P>
<P><A NAME="05"></A><A HREF="05-1.htm" tppabs="http://202.113.16.101/%7eeb%7e/Teach%20Yourself%20MS%20SQL%20Server%206.5%20in%2021%20Days/05-1.htm"><B>Figure 14.5.</B></A></P>
<P><I>Oracle SQL*Plus.</I></P>
<P>At this point you can create your tables and enter your data using the <TT>CREATE</TT>
and <TT>INSERT</TT> keywords. Another common way of creating tables and entering
data is with a script file. A script file is usually a text file with the SQL commands
typed out in the proper order. Look at this excerpt from a script file delivered
with Oracle7:</P>
<PRE><FONT COLOR="#0066FF">------------------------------------------------------------
-- Script to build seed database for Personal Oracle
----------------------------------------------------------
-- NTES
     Called from buildall.sql
-- MODIFICATIONS
--   rs  12/04/94 - Comment, clean up, resize, for production

------------------------------------------------------------
startup nomount pfile=%rdbms71%\init.ora
--  Create database for Windows RDBMS
create database oracle
    controlfile reuse
    logfile '%oracle_home%\dbs\wdblog1.ora' size 400K reuse,
            '%oracle_home%\dbs\wdblog2.ora' size 400K reuse
    datafile '%oracle_home%\dbs\wdbsys.ora' size 10M reuse
    character set WE8ISO8859P1;
</FONT></PRE>
<P>The syntax varies slightly with the implementation of SQL and the database you
are using, so be sure to check your documentation. Select File | Open to load this
script into your SQL engine.</P>
<P>Borland's InterBase loads data in a similar way. The following excerpt is from
one of the files to insert data:</P>
<PRE><FONT COLOR="#0066FF">/*
 *  Add countries.
*/
INSERT INTO country (country, currency) VALUES ('USA',         'Dollar');
INSERT INTO country (country, currency) VALUES ('England',     'Pound');
INSERT INTO country (country, currency) VALUES ('Canada',      'CdnDlr');
INSERT INTO country (country, currency) VALUES ('Switzerland', 'SFranc');
INSERT INTO country (country, currency) VALUES ('Japan',       'Yen');
INSERT INTO country (country, currency) VALUES ('Italy',       'Lira');
INSERT INTO country (country, currency) VALUES ('France',      'FFranc');
INSERT INTO country (country, currency) VALUES ('Germany',     'D-Mark');
INSERT INTO country (country, currency) VALUES ('Australia',   'ADollar');
INSERT INTO country (country, currency) VALUES ('Hong Kong',   'HKDollar');
INSERT INTO country (country, currency) VALUES ('Netherlands', 'Guilder');
INSERT INTO country (country, currency) VALUES ('Belgium',     'BFranc');
INSERT INTO country (country, currency) VALUES ('Austria',     'Schilling');
INSERT INTO country (country, currency) VALUES ('Fiji',        'fdollar');
</FONT></PRE>
<H5>ANALYSIS:</H5>
<P>This example inserts a country name and the type currency used in that country
into the <TT>COUNTRY</TT> table. (Refer to Day 8, &quot;Manipulating Data,&quot;
for an introduction to the <TT>INSERT</TT> command.)</P>
<P>There is nothing magic here. Programmers always find ways to save keystrokes.
If you are playing along at home, enter the following tables:</P>
<H5>INPUT:</H5>
<PRE><FONT COLOR="#0066FF">/* Table: CUSTOMER, Owner: PERKINS */
<B>CREATE TABLE CUSTOMER (NAME CHAR(10),
        ADDRESS CHAR(10),
        STATE CHAR(2),
        ZIP CHAR(10),
        PHONE CHAR(11),
        REMARKS CHAR(10));</B></FONT></PRE>
<H5><FONT COLOR="#000000">INPUT:</FONT></H5>
<PRE><FONT COLOR="#0066FF">/* Table: ORDERS, Owner: PERKINS */
<B>CREATE TABLE ORDERS (ORDEREDON DATE,
        NAME CHAR(10),
        PARTNUM INTEGER,
        QUANTITY INTEGER,
        REMARKS CHAR(10));</B></FONT></PRE>
<H5><FONT COLOR="#000000">INPUT:</FONT></H5>
<PRE><FONT COLOR="#0066FF">/* Table: PART, Owner: PERKINS */
<B>CREATE TABLE PART (PARTNUM INTEGER,
        DESCRIPTION CHAR(20),
        PRICE NUMERIC(9, 2));
</B></FONT></PRE>
<P>Now fill these tables with the following data:</P>
<H5>INPUT/OUTPUT:</H5>
<PRE><FONT COLOR="#0066FF"><B>SELECT * FROM CUSTOMER</B>

NAME       ADDRESS    STATE  ZIP      PHONE       REMARKS
========== ========== ====== ======   ========    ==========

TRUE WHEEL 55O HUSKER NE     58702  	555-4545    	NONE
BIKE SPEC  CPT SHRIVE LA     45678  	555-1234    	NONE
LE SHOPPE  HOMETOWN   KS     54678  	555-1278    	NONE
AAA BIKE   10 OLDTOWN NE     56784  	555-3421    	JOHN-MGR
JACKS BIKE 24 EGLIN   FL     34567  	555-2314    	NONE</FONT></PRE>
<H5><FONT COLOR="#000000">INPUT/OUTPUT:</FONT></H5>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久婷婷成人综合色| 国产日韩在线不卡| 欧美中文一区二区三区| 91色乱码一区二区三区| 91精彩视频在线| 欧美三级蜜桃2在线观看| 欧美日韩欧美一区二区| 8v天堂国产在线一区二区| 91精品国产手机| 91精品国产欧美一区二区| 日韩精品一区二区三区四区视频| 日韩欧美中文字幕精品| 久久这里只有精品视频网| 国产精品欧美久久久久无广告| 国产女同互慰高潮91漫画| 国产精品国产三级国产普通话蜜臀 | 亚洲欧美一区二区久久| 一区二区三区蜜桃网| 秋霞午夜鲁丝一区二区老狼| 黑人巨大精品欧美黑白配亚洲| 国产suv精品一区二区三区| 日本精品免费观看高清观看| 3751色影院一区二区三区| 精品国产免费人成电影在线观看四季 | 日日夜夜精品视频免费| 久久激情五月激情| 不卡的av在线播放| 欧美一区二区性放荡片| 国产亚洲精品中文字幕| 亚洲国产综合在线| 国产精品一区三区| 欧美日韩一区不卡| 国产日产亚洲精品系列| 亚洲在线一区二区三区| 国产在线麻豆精品观看| 欧洲亚洲精品在线| 国产精品美女久久久久久久网站| 亚洲高清三级视频| 成人黄色软件下载| 精品国内片67194| 亚洲一区二三区| 成人免费看黄yyy456| 欧美精品三级在线观看| 一区二区中文视频| 国产乱子伦一区二区三区国色天香| 色综合欧美在线视频区| 国产亚洲精品精华液| 日韩制服丝袜先锋影音| 91免费看`日韩一区二区| 国产亚洲人成网站| 久久精品二区亚洲w码| 欧美三区在线观看| 亚洲婷婷在线视频| 成人福利视频网站| 久久久三级国产网站| 蜜臀av性久久久久蜜臀aⅴ四虎 | 视频在线观看国产精品| 91婷婷韩国欧美一区二区| 国产欧美精品区一区二区三区| 蜜桃av一区二区三区电影| 欧美在线免费播放| 一区二区三区精密机械公司| caoporm超碰国产精品| 国产欧美日韩在线| 国产乱码精品1区2区3区| 欧美zozo另类异族| 极品少妇xxxx精品少妇| 日韩一级高清毛片| 蜜桃一区二区三区四区| 91精品久久久久久久99蜜桃| 亚洲国产视频直播| 欧美日本视频在线| 视频在线观看一区| 欧美一区二区高清| 国产在线播精品第三| 精品久久久久久久久久久久久久久久久 | 亚洲人被黑人高潮完整版| 99久久精品情趣| 亚洲麻豆国产自偷在线| 色成年激情久久综合| 亚洲一线二线三线视频| 欧美日韩精品是欧美日韩精品| 午夜精品一区二区三区电影天堂| 欧美日韩一区二区三区高清| 五月综合激情婷婷六月色窝| 51精品秘密在线观看| 另类欧美日韩国产在线| 久久久国产精华| 色综合久久99| 亚洲成av人影院| 精品国产在天天线2019| 成人美女视频在线观看18| 国产精品天天看| 在线观看日韩高清av| 免费不卡在线观看| 国产午夜久久久久| 91黄色激情网站| 六月丁香综合在线视频| 国产精品久久久久久亚洲毛片| 色呦呦一区二区三区| 免费成人小视频| 亚洲视频一二三区| 欧美一区二区三区系列电影| 成人国产精品免费网站| 亚洲成人一区在线| 国产午夜精品理论片a级大结局| 成人教育av在线| 三级不卡在线观看| 亚洲欧洲av在线| 日韩欧美国产麻豆| 91免费精品国自产拍在线不卡| 日日骚欧美日韩| 亚洲三级电影网站| 久久综合九色综合久久久精品综合| 丁香亚洲综合激情啪啪综合| 亚洲超碰97人人做人人爱| 久久婷婷成人综合色| 欧美人妖巨大在线| 国产成人免费视频网站高清观看视频| 亚洲国产综合人成综合网站| 亚洲国产精品精华液2区45| 欧美日韩国产天堂| 91免费视频网| www.欧美日韩| 精品亚洲国产成人av制服丝袜| 一级日本不卡的影视| 国产精品国产a级| 欧美精品一区视频| 欧美一级高清片| 欧美色视频在线| 欧洲另类一二三四区| av在线不卡网| 成人黄色电影在线| 国产一区二区精品在线观看| 日本va欧美va欧美va精品| 亚洲国产成人porn| 亚洲综合视频在线| 有码一区二区三区| 一区二区三区在线视频免费观看| 国产精品天美传媒沈樵| 2017欧美狠狠色| 精品欧美一区二区在线观看| 欧美一级黄色大片| 91麻豆精品久久久久蜜臀| 欧美乱熟臀69xxxxxx| 精品视频999| 777久久久精品| 欧美日韩免费不卡视频一区二区三区| 91免费精品国自产拍在线不卡| 99久久久精品免费观看国产蜜| 成人免费高清视频| 91视频在线看| 欧美亚洲日本国产| 在线播放日韩导航| 日韩美女一区二区三区| 2022国产精品视频| 国产精品乱码一区二区三区软件 | 在线成人小视频| 日韩一区二区免费在线电影| 精品国产精品一区二区夜夜嗨| 精品国产青草久久久久福利| 久久亚洲综合色一区二区三区 | 欧美美女网站色| 欧美一级欧美一级在线播放| 日韩免费视频线观看| 久久久综合视频| 综合在线观看色| 日韩精品国产精品| 国产综合色产在线精品| 成人在线视频首页| 欧美色视频在线观看| 日韩视频免费观看高清在线视频| 精品国产乱码久久久久久夜甘婷婷 | 99久久精品99国产精品| 在线视频中文字幕一区二区| 日韩三级视频中文字幕| 国产精品人成在线观看免费| 亚洲理论在线观看| 久久不见久久见免费视频1| 成人中文字幕电影| 7777精品久久久大香线蕉| 精品国产sm最大网站免费看| 亚洲欧洲三级电影| 免费看欧美美女黄的网站| 成人国产一区二区三区精品| 欧美三级韩国三级日本一级| 久久天天做天天爱综合色| 亚洲免费观看高清完整版在线观看| 日韩av电影天堂| 波多野结衣中文一区| 日韩亚洲欧美一区二区三区| 国产精品国产精品国产专区不片| 日韩成人一区二区| 99视频一区二区三区| 日韩无一区二区| 亚洲精品国产无天堂网2021| 国产真实乱对白精彩久久| 欧美亚洲一区二区在线| 欧美激情综合网| 激情五月婷婷综合|