Đang chuẩn bị liên kết để tải về tài liệu:
SQL A Practical Introduction
Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
SQL was one of the first commercial languages for Edgar F. Codd's relational model, as described in his influential 1970 paper, "A Relational Model of Data for Large Shared Data Banks". Despite not adhering to the relational model as described by Codd, it became the most widely used database language. Although SQL is often described as, and to a great extent is, a declarative language (4GL), it also includes procedural elements. SQL became a standard of the American National Standards Institute (ANSI) in 1986, and of the International Organization for Standards (ISO) in 1987. Since then, the standard has been. | CONTENTS 1 INTRODUCTION 1.1 A Collection of Related Data Databases and Database Management Systems. 1.2 The Database as a Collection of Tables Relational Databases and SQL. 1.2.1 Tables Columns and Rows. 1.2.2 The Primary Key. 1.3 Communicating to the DBMS What You Want it to do Introduction to the SQL language. 1.4 A Research Project Conducted by IBM The History of SQL. 1.5 SQL Commands Build Upon Themselves Organization of This Book. 1.5.1 Notational Conventions. 2 A ROUGH GUIDE TO SQL. 2.1 Consider the Simple Address Book A Basic Relational Database. 2.2 SQL Commands Fall into Different Categories Subdivisions of SQL. 2.3 Enter SQL Statements at the Command Line Using interpretive SQL. 2.4 Use the CREATE TABLE statement Creating Database Tables. 2.5 Use the INSERT INTO Statement Adding Data to Tables. 2.6 Use the SELECT Statement Extracting data from tables. 2.7 Use the UPDATE and DELETE Statements Modifying data. 2.8 Another Kind of Table Called a Virtual Table Views. 2.9 Prevent Access to Sensitive Information Database security. 3 CREATING AND MAINTAINING TABLES. 3.1 The ANSI Standard Makes Such a Distinction. The DDL and the ANSI ISO standard. 3.2 Single and Multiple Database Architectures The structure of SQL databases. 3.3 Creating a Database Table The CREATE TABLE command. 3.4 Apply Restrictions to Groups of Columns Column and table modifiers. 3.4.1 The NOT NULL modifier. 3.4.2 The UNIQUE modifier. 3.4.3 The INDEX modifier. 3.4.4 The PRIMARY KEY modifier. 3.4.5 The FOREIGN KEY modifier. 3.4.6 The DEFAULT modifier. 3.4.7 The CHECK modifier 3.5 Indexes are Ordered for Extremely Fast Searches Indexes. 3.6 Changing the Structure of a Table The ALTER TABLE Command. 3.7 Remove Redundant Tables from the Database The DROP TABLE Command. 4 QUERYING SQL TABLES. 4.1 The most basic query The Simple SELECT statement. 4.1.1 Calculated columns. 4.2 Selecting rows for output The WHERE clause. 4.2.1 Comparison Test Operators . 4.2.2 Range Test Operator BETWEEN. 4.2.3 Set .