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

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

?? ch01.htm

?? Learn SQL in an easy way...
?? HTM
?? 第 1 頁 / 共 3 頁
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>

<HEAD>
	
	<TITLE>Teach Yourself SQL in 21 Days, Second Edition -- Day 1 -- Introduction to SQL</TITLE>
</HEAD>

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

<CENTER>
<H1><IMG SRC="../buttonart/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="../wk1ag/wk1ag.htm"><IMG SRC="../buttonart/previous.gif" WIDTH="128" HEIGHT="28"
ALIGN="BOTTOM" ALT="Previous chapter" BORDER="0"></A><A HREF="../ch02/ch02.htm"><IMG
SRC="../buttonart/next.gif" WIDTH="128" HEIGHT="28" ALIGN="BOTTOM" ALT="Next chapter"
BORDER="0"></A><A HREF="../index.htm"><IMG SRC="../buttonart/contents.gif" WIDTH="128"
HEIGHT="28" ALIGN="BOTTOM" ALT="Contents" BORDER="0"></A> 
<HR>

</CENTER>
<CENTER>
<H1><FONT COLOR="#000077">- Day 1 - <BR>
Introduction to SQL</FONT></H1>
</CENTER>
<H2><FONT COLOR="#000077"><B>A Brief History of SQL</B></FONT></H2>
<P>The history of SQL begins in an IBM laboratory in San Jose, California, where
SQL was developed in the late 1970s. The initials stand for Structured Query Language,
and the language itself is often referred to as &quot;sequel.&quot; It was originally
developed for IBM's DB2 product (a relational database management system, or RDBMS,
that can still be bought today for various platforms and environments). In fact,
SQL makes an RDBMS possible. SQL is a nonprocedural language, in contrast to the
procedural or third-generation languages (3GLs) such as COBOL and C that had been
created up to that time.


<BLOCKQUOTE>
	<P>
<HR>
<FONT COLOR="#000077"><B>NOTE:</B></FONT><I><B> </B>Nonprocedural</I> means <I>what</I>
	rather than <I>how</I>. For example, SQL describes what data to retrieve, delete,
	or insert, rather than how to perform the operation. 
<HR>


</BLOCKQUOTE>

<P>The characteristic that differentiates a DBMS from an RDBMS is that the RDBMS
provides a set-oriented database language. For most RDBMSs, this set-oriented database
language is SQL. <I>Set oriented</I> means that SQL processes sets of data in groups.</P>
<P>Two standards organizations, the American National Standards Institute (ANSI)
and the International Standards Organization (ISO), currently promote SQL standards
to industry. The ANSI-92 standard is the standard for the SQL used throughout this
book. Although these standard-making bodies prepare standards for database system
designers to follow, all database products differ from the ANSI standard to some
degree. In addition, most systems provide some proprietary extensions to SQL that
extend the language into a true procedural language. We have used various RDBMSs
to prepare the examples in this book to give you an idea of what to expect from the
common database systems. (We discuss procedural SQL--known as PL/SQL--on Day 18,
&quot;PL/SQL: An Introduction,&quot; and Transact-SQL on Day 19, &quot;Transact-SQL:
An Introduction.&quot;)
<H2><FONT COLOR="#000077"><B>A Brief History of Databases</B></FONT></H2>
<P>A little background on the evolution of databases and database theory will help
you understand the workings of SQL. Database systems store information in every conceivable
business environment. From large tracking databases such as airline reservation systems
to a child's baseball card collection, database systems store and distribute the
data that we depend on. Until the last few years, large database systems could be
run only on large mainframe computers. These machines have traditionally been expensive
to design, purchase, and maintain. However, today's generation of powerful, inexpensive
workstation computers enables programmers to design software that maintains and distributes
data quickly and inexpensively.
<H3><FONT COLOR="#000077"><B>Dr. Codd's 12 Rules for a Relational Database Model</B></FONT></H3>
<P>The most popular data storage model is the relational database, which grew from
the seminal paper &quot;A Relational Model of Data for Large Shared Data Banks,&quot;
written by Dr. E. F. Codd in 1970. SQL evolved to service the concepts of the relational
database model. Dr. Codd defined 13 rules, oddly enough referred to as Codd's 12
Rules, for the relational model:

<DL>
	<DD><B>0. </B>A relational DBMS must be able to manage databases entirely through
	its relational capabilities.<BR>
	<BR>
	<B>1.</B> Information rule-- All information in a relational database (including
	table and column names) is represented explicitly as values in tables.<BR>
	<BR>
	<B>2.</B> Guaranteed access--Every value in a relational database is guaranteed to
	be accessible by using a combination of the table name, primary key value, and column
	name.<BR>
	<BR>
	<B>3. </B>Systematic null value support--The DBMS provides systematic support for
	the treatment of null values (unknown or inapplicable data), distinct from default
	values, and independent of any domain.<BR>
	<BR>
	<B>4. </B>Active, online relational catalog--The description of the database and
	its contents is represented at the logical level as tables and can therefore be queried
	using the database language.<BR>
	<BR>
	<B>5. </B>Comprehensive data sublanguage--At least one supported language must have
	a well-defined syntax and be comprehensive. It must support data definition, manipulation,
	integrity rules, authorization, and transactions.<BR>
	<BR>
	<B>6. </B>View updating rule--All views that are theoretically updatable can be updated
	through the system.<BR>
	<BR>
	<B>7. </B>Set-level insertion, update, and deletion--The DBMS supports not only set-level
	retrievals but also set-level inserts, updates, and deletes.<BR>
	<BR>
	<B>8.</B> Physical data independence--Application programs and ad hoc programs are
	logically unaffected when physical access methods or storage structures are altered.<BR>
	<BR>
	<B>9. </B>Logical data independence--Application programs and ad hoc programs are
	logically unaffected, to the extent possible, when changes are made to the table
	structures.<BR>
	<BR>
	<B>10.</B> Integrity independence--The database language must be capable of defining
	integrity rules. They must be stored in the online catalog, and they cannot be bypassed.<BR>
	<BR>
	<B>11. </B>Distribution independence--Application programs and ad hoc requests are
	logically unaffected when data is first distributed or when it is redistributed.<BR>
	<BR>
	<B>12.</B> Nonsubversion--It must not be possible to bypass the integrity rules defined
	through the database language by using lower-level languages.
</DL>

<P>Most databases have had a &quot;parent/child&quot; relationship; that is, a parent
node would contain file pointers to its children. (See Figure 1.1.)</P>
<P><A NAME="01"></A><A HREF="01.htm"><B>Figure 1.1.</B></A><B><BR>
</B><I>Codd's relational database management system.</I></P>
<P>This method has several advantages and many disadvantages. In its favor is the
fact that the physical structure of data on a disk becomes unimportant. The programmer
simply stores pointers to the next location, so data can be accessed in this manner.
Also, data can be added and deleted easily. However, different groups of information
could not be easily joined to form new information. The format of the data on the
disk could not be arbitrarily changed after the database was created. Doing so would
require the creation of a new database structure.</P>
<P>Codd's idea for an RDBMS uses the mathematical concepts of relational algebra
to break down data into sets and related common subsets.</P>
<P>Because information can naturally be grouped into distinct sets, Dr. Codd organized
his database system around this concept. Under the relational model, data is separated
into sets that resemble a table structure. This table structure consists of individual
data elements called columns or fields. A single set of a group of fields is known
as a record or row. For instance, to create a relational database consisting of employee
data, you might start with a table called <TT>EMPLOYEE</TT> that contains the following
pieces of information: <TT>Name</TT>, <TT>Age</TT>, and <TT>Occupation</TT>. These
three pieces of data make up the fields in the <TT>EMPLOYEE</TT> table, shown in
Table 1.1.
<H4><FONT COLOR="#000077"><B>Table 1.1. The </B>EMPLOYEE<B> table.</B></FONT></H4>
<P>
<TABLE BORDER="1">
	<TR ALIGN="LEFT" rowspan="1">
		<TD ALIGN="LEFT" VALIGN="TOP"><B>Name</B></TD>
		<TD ALIGN="LEFT" VALIGN="TOP"><B>Age</B></TD>
		<TD ALIGN="LEFT" VALIGN="TOP"><B>Occupation</B></TD>
	</TR>
	<TR ALIGN="LEFT" rowspan="1">
		<TD ALIGN="LEFT" VALIGN="TOP">Will Williams</TD>
		<TD ALIGN="LEFT" VALIGN="TOP">25</TD>
		<TD ALIGN="LEFT" VALIGN="TOP">Electrical engineer</TD>
	</TR>
	<TR ALIGN="LEFT" rowspan="1">
		<TD ALIGN="LEFT" VALIGN="TOP">Dave Davidson</TD>
		<TD ALIGN="LEFT" VALIGN="TOP">34</TD>
		<TD ALIGN="LEFT" VALIGN="TOP">Museum curator</TD>
	</TR>
	<TR ALIGN="LEFT" rowspan="1">
		<TD ALIGN="LEFT" VALIGN="TOP">Jan Janis</TD>
		<TD ALIGN="LEFT" VALIGN="TOP">42</TD>
		<TD ALIGN="LEFT" VALIGN="TOP">Chef</TD>
	</TR>
	<TR ALIGN="LEFT" rowspan="1">
		<TD ALIGN="LEFT" VALIGN="TOP">Bill Jackson</TD>
		<TD ALIGN="LEFT" VALIGN="TOP">19</TD>
		<TD ALIGN="LEFT" VALIGN="TOP">Student</TD>
	</TR>
	<TR ALIGN="LEFT" rowspan="1">
		<TD ALIGN="LEFT" VALIGN="TOP">Don DeMarco</TD>
		<TD ALIGN="LEFT" VALIGN="TOP">32</TD>
		<TD ALIGN="LEFT" VALIGN="TOP">Game programmer</TD>
	</TR>
	<TR ALIGN="LEFT" rowspan="1">
		<TD ALIGN="LEFT" VALIGN="TOP">Becky Boudreaux</TD>
		<TD ALIGN="LEFT" VALIGN="TOP">25</TD>
		<TD ALIGN="LEFT" VALIGN="TOP">Model</TD>
	</TR>
</TABLE>
</P>
<P>The six rows are the records in the <TT>EMPLOYEE</TT> table. To retrieve a specific
record from this table, for example, Dave Davidson, a user would instruct the database
management system to retrieve the records where the <TT>NAME</TT> field was equal
to Dave Davidson. If the DBMS had been instructed to retrieve all the fields in the
record, the employee's name, age, and occupation would be returned to the user. SQL
is the language that tells the database to retrieve this data. A sample SQL statement
that makes this query is</P>
<PRE><FONT COLOR="#0066FF">SELECT *
FROM EMPLOYEE
</FONT></PRE>
<P>Remember that the exact syntax is not important at this point. We cover this topic
in much greater detail beginning tomorrow.</P>
<P>Because the various data items can be grouped according to obvious relationships
(such as the relationship of <TT>Employee Name</TT> to <TT>Employee Age</TT>), the
relational database model gives the database designer a great deal of flexibility
to describe the relationships between the data elements. Through the mathematical
concepts of join and union, relational databases can quickly retrieve pieces of data
from different sets (tables) and return them to the user or program as one &quot;joined&quot;
collection of data. (See Figure 1.2.) The join feature enables the designer to store
sets of information in separate tables to reduce repetition.</P>
<P><A NAME="02"></A><A HREF="02.htm"><B>Figure 1.2.</B></A><B><BR>
</B><I>The join feature.</I></P>
<P>Figure 1.3 shows a union. The union would return only data common to both sources.</P>
<P><A NAME="03"></A><A HREF="03.htm"><B>Figure 1.3.</B></A><B><BR>
</B><I>The union feature.</I></P>
<P>Here's a simple example that shows how data can be logically divided between two
tables. Table 1.2 is called <TT>RESPONSIBILITIES</TT> and contains two fields: <TT>NAME</TT>
and <TT>DUTIES</TT>.
<H4><FONT COLOR="#000077"><B>Table 1.2. The </B>RESPONSIBILITIES<B> table.</B></FONT></H4>
<P>
<TABLE BORDER="1">
	<TR ALIGN="LEFT" rowspan="1">
		<TD ALIGN="LEFT"><B>Name</B></TD>
		<TD ALIGN="LEFT"><B>Duties</B></TD>
	</TR>
	<TR ALIGN="LEFT" rowspan="1">
		<TD ALIGN="LEFT">Becky Boudreaux</TD>
		<TD ALIGN="LEFT">Smile</TD>
	</TR>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品69毛片高清亚洲| 日韩免费看网站| 972aa.com艺术欧美| 一道本成人在线| 欧美一卡二卡在线观看| 久久久精品日韩欧美| 国产精品久久久久9999吃药| 一区二区三区在线观看欧美 | 国产很黄免费观看久久| 99精品视频一区二区| 亚洲人123区| 久久99国产精品尤物| 在线日韩国产精品| 国产日韩欧美麻豆| 日本在线不卡一区| 99精品热视频| 亚洲444eee在线观看| 懂色av中文字幕一区二区三区| 欧美男女性生活在线直播观看| 国产精品热久久久久夜色精品三区| 日韩成人伦理电影在线观看| 精品国产乱码久久久久久夜甘婷婷| 一区二区三区在线观看动漫| 欧美一区二区在线免费播放| 激情丁香综合五月| 欧美一级片在线| 国产999精品久久久久久绿帽| 亚洲精品五月天| 成人av在线资源| 国产欧美一区二区三区在线老狼| 一本到不卡免费一区二区| 日本不卡一二三| 91精品国产91热久久久做人人| 国产一区二区三区黄视频 | 亚洲人成7777| 免费观看日韩av| 日韩一区二区在线看片| 日韩 欧美一区二区三区| 久久丁香综合五月国产三级网站| 日韩欧美中文字幕公布| 偷拍一区二区三区| 久久久久久9999| 国产精品电影院| 91福利精品视频| 成人深夜福利app| 国产日韩av一区| 欧美日本一道本| 成人av免费在线观看| 天天综合色天天综合色h| 国产精品免费视频网站| 日韩欧美综合在线| 欧美三级资源在线| 日韩中文字幕91| 91精品国产全国免费观看| 成人综合婷婷国产精品久久免费| 蜜桃av噜噜一区| 久久奇米777| 欧美一区二区视频在线观看| 日本精品免费观看高清观看| 懂色av中文一区二区三区 | 在线观看亚洲专区| 国产一本一道久久香蕉| 奇米四色…亚洲| 午夜精品国产更新| 亚洲国产一区二区在线播放| 欧美乱妇一区二区三区不卡视频| 亚洲制服丝袜av| 成人黄色国产精品网站大全在线免费观看| 欧美怡红院视频| 欧美在线一区二区三区| 国产在线看一区| 日本一区二区三区久久久久久久久不 | 波多野结衣91| 亚洲综合无码一区二区| 日本一区二区成人在线| 三级欧美韩日大片在线看| 67194成人在线观看| 亚洲欧洲日韩在线| 国产在线一区二区| 日本不卡的三区四区五区| 成人免费的视频| 亚洲精品在线电影| 欧美一区二视频| 6080午夜不卡| 日韩欧美中文字幕制服| 精品剧情v国产在线观看在线| 久久av资源网| 国内精品不卡在线| 国产激情视频一区二区在线观看| 国产成人精品亚洲日本在线桃色| 大胆欧美人体老妇| 99精品国产热久久91蜜凸| 色综合久久88色综合天天6 | 欧美亚洲国产bt| 午夜精品久久久久久久久| 国产欧美日韩三区| 久久久久久久网| 久久免费午夜影院| 欧美精品一区二区三区视频| 久久久久久影视| 精品国产电影一区二区| 久久久影视传媒| 久久久夜色精品亚洲| 国产精品网友自拍| 亚洲人精品一区| 日韩精品一区二区三区在线观看 | 欧美在线你懂的| 91视频你懂的| 亚洲资源中文字幕| 亚洲一区免费视频| 91精品福利视频| 欧美精品日韩一本| av中文字幕不卡| jizzjizzjizz欧美| 欧美写真视频网站| 精品成人免费观看| 日韩一区日韩二区| 奇米综合一区二区三区精品视频| 蜜臀精品久久久久久蜜臀| 日本久久一区二区三区| 在线观看一区日韩| 亚洲一区二区在线免费看| 91精品国产色综合久久不卡电影| 日本不卡的三区四区五区| 日本一区二区成人| 日本午夜精品视频在线观看| 国产98色在线|日韩| 欧美乱熟臀69xxxxxx| 亚洲成人精品一区二区| 日本丶国产丶欧美色综合| 欧美精品一二三四| 成人性色生活片| 欧美久久久久久蜜桃| 久久精品夜色噜噜亚洲a∨| 91麻豆swag| 日韩久久久精品| 亚洲夂夂婷婷色拍ww47| 成人动漫av在线| 欧美成人官网二区| 亚洲午夜久久久| 99久久久精品免费观看国产蜜| 日韩三区在线观看| 亚洲二区在线视频| 91免费观看视频| 国产性色一区二区| 久久精品国产精品亚洲红杏| 欧美探花视频资源| 亚洲欧美日韩电影| 国产一区不卡视频| 日韩亚洲欧美高清| 偷拍日韩校园综合在线| 在线观看av一区二区| 国产精品久久毛片a| 国产精品白丝jk白祙喷水网站| 日韩一级完整毛片| 日韩国产欧美在线播放| 欧美视频完全免费看| 亚洲嫩草精品久久| 91首页免费视频| 中文字幕一区三区| 丰满放荡岳乱妇91ww| 久久久国产一区二区三区四区小说| 激情综合色丁香一区二区| 91精品在线免费| 青青草国产精品97视觉盛宴| 欧美肥大bbwbbw高潮| 亚洲福利一区二区三区| 欧美在线观看一二区| 亚洲综合av网| 欧美日韩一区二区欧美激情| 亚洲一卡二卡三卡四卡 | 久久众筹精品私拍模特| 国产精品久线在线观看| 国产精品一区二区久久不卡 | 一区二区三区中文免费| 91蝌蚪porny| 一区二区三区小说| 欧美午夜精品久久久久久孕妇 | 欧美日韩一级片在线观看| 调教+趴+乳夹+国产+精品| 91精品国产综合久久久久久漫画 | 色综合久久天天综合网| 一区二区日韩av| 欧美精品少妇一区二区三区| 天堂一区二区在线| 精品日韩一区二区三区免费视频| 极品少妇一区二区| 国产精品高潮呻吟| 在线观看日韩电影| 日韩国产精品久久久久久亚洲| 日韩你懂的在线观看| 国产精品一级二级三级| 国产精品成人免费| 欧美色视频一区| 老司机精品视频在线| 日本一区二区三区国色天香 | 精品在线视频一区| 欧美国产成人精品| 欧美三级日韩三级| 久久99精品久久只有精品|